From 9a4645344879882143eaec13d3d8356ba47b7106 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sep 20 2017 21:51:20 +0000 Subject: Use __doc__ for description not usage Usage contains just the commandline which is not part of the docstring, therefore use the docstring for the description. Signed-off-by: Till Maas --- diff --git a/scripts/distgit/give-package.py b/scripts/distgit/give-package.py index 1d254d8..349da37 100755 --- a/scripts/distgit/give-package.py +++ b/scripts/distgit/give-package.py @@ -31,7 +31,7 @@ PAGURE_URL = 'https://src.fedoraproject.org/api/0/' def main(): - parser = argparse.ArgumentParser(usage=__doc__) + parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("package", help="The package that should be given.") parser.add_argument("custodian", help="The user taking over the package.") args = parser.parse_args() diff --git a/scripts/distgit/orphan-all-packages.py b/scripts/distgit/orphan-all-packages.py index e76d43d..ae44f46 100755 --- a/scripts/distgit/orphan-all-packages.py +++ b/scripts/distgit/orphan-all-packages.py @@ -62,7 +62,7 @@ def triage_packages(packages, user): def main(): - parser = argparse.ArgumentParser(usage=__doc__) + parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("users", nargs="*", help="Users to remove.") args = parser.parse_args()