From 2839f6fe8047696d3da8ecb78ea1f2014225292d Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Thu, 24 Mar 2022 21:56:26 -0700 Subject: [PATCH] Add description to help message --- CHANGELOG.rst | 7 +++++++ bin/pug2 | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c2939c1..8615930 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,13 @@ Changelog for packaging-scripts =============================== +Version 1.6.1 +------------- + +* pug2 + + * Add description to help message + Version 1.6.0 ------------- diff --git a/bin/pug2 b/bin/pug2 index 8e4a635..1e1832a 100644 --- a/bin/pug2 +++ b/bin/pug2 @@ -25,6 +25,7 @@ CONFIG_OPTION_ENABLE = "RUN_ON_PACMAN_HOOK" CONFIG_OPTION_FILENAME = "GIST_FILENAME" CONFIG_OPTION_ID = "GIST_ID" +DESCRIPTION = "Send a list of explicitly installed pacman packages to a gist" # ========== Functions ========== def extract_gist_id(url): @@ -71,7 +72,7 @@ def package_lists_match(gist_id): # ========== Main Script ========== if __name__ == "__main__": - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser(description=DESCRIPTION) parser.add_argument( "-c", "--check-if-enabled",