From 9a23ebb6cca446b3a61aa5e3ea59ef46e136d902 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 4 Dec 2014 21:25:56 +0100 Subject: do not print a program description in --help --- imdb-lookup/imdbinfo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'imdb-lookup/imdbinfo.py') 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") -- cgit v1.2.1