diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-11-27 19:48:00 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-12-13 17:30:50 -0800 |
| commit | f33a50c69bbb7790f612eebeb005e1137b5c252a (patch) | |
| tree | 324eab20b1b51ef1f88fa93d354b4a0ecaee3a0f | |
| parent | 3fb84e950bd6f65dd298b08c86723b388c3b62f8 (diff) | |
| download | pyramid-f33a50c69bbb7790f612eebeb005e1137b5c252a.tar.gz pyramid-f33a50c69bbb7790f612eebeb005e1137b5c252a.tar.bz2 pyramid-f33a50c69bbb7790f612eebeb005e1137b5c252a.zip | |
make usage parseable by argparse
| -rw-r--r-- | pyramid/scripts/pdistreport.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/scripts/pdistreport.py b/pyramid/scripts/pdistreport.py index c090d3311..64837a36c 100644 --- a/pyramid/scripts/pdistreport.py +++ b/pyramid/scripts/pdistreport.py @@ -13,9 +13,9 @@ def out(*args): # pragma: no cover def main(argv=sys.argv, pkg_resources=pkg_resources, platform=platform.platform, out=out): # all args except argv are for unit testing purposes only - description = "Show Python distribution versions and locations in use" - usage = "usage: %(prog)s" - parser = argparse.ArgumentParser(usage, description=description) + parser = argparse.ArgumentParser( + usage="%(prog)s", + description="Show Python distribution versions and locations in use") parser.parse_args(argv[1:]) packages = [] for distribution in pkg_resources.working_set: |
