diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-12-04 21:25:56 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-12-04 21:25:56 +0100 |
commit | 9a23ebb6cca446b3a61aa5e3ea59ef46e136d902 (patch) | |
tree | 258bd9c9cd57a25030937413b5fbd25e9b83db6d /imdb-lookup | |
parent | b87cfa966e72cc7f7ee9d21cc69a09ee01982328 (diff) | |
download | scripts-9a23ebb6cca446b3a61aa5e3ea59ef46e136d902.tar.gz scripts-9a23ebb6cca446b3a61aa5e3ea59ef46e136d902.zip |
do not print a program description in --help
Diffstat (limited to 'imdb-lookup')
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index 649b71d..e4e2aab 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -269,7 +269,6 @@ class HelpAction(argparse._HelpAction): def __call__(self, parser, namespace, values, option_string=None): formatter = parser._get_formatter() formatter.add_usage(parser.usage, parser._actions, parser._mutually_exclusive_groups) - formatter.add_text(parser.description) formatter.start_section(parser._optionals.title) formatter.add_text(parser._optionals.description) @@ -302,7 +301,7 @@ def do_test(args): if __name__ == "__main__": tmdb.API_KEY = read_key() - parser = argparse.ArgumentParser(description="get movie data", add_help=False) + parser = argparse.ArgumentParser(add_help=False) parser.add_argument("--help", action=HelpAction, help="Display full help") parser.add_argument("--log-level", action='store', type=int, help="Set log level (CRITICAL=50,ERROR=40,WARNING=30,INFO=20,DEBUG=10,NOTSET=0") |