From 6b419067b7031b05a2008188a114956da43e0999 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 3 Jul 2012 12:49:35 +0200 Subject: [PATCH] Another minor update for Issue #54 --- lib/parse/cmdline.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 2e6b48ea5..167af4746 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -33,7 +33,7 @@ def cmdLineParser(): try: parser.add_option("--hh", dest="advancedHelp", action="store_true", - help="Show advanced help") + help="Show advanced help message and exit") parser.add_option("-v", dest="verbose", type="int", help="Verbosity level: 0-6 (default %d)" % defaults.verbose) @@ -676,6 +676,11 @@ def cmdLineParser(): option._short_opts = ["-hh"] option._long_opts = [] + # Dirty hack for inherent help messages of switches --version and -h + for option in ('-h', '--version'): + _ = parser.get_option(option) + _.help = _.help.capitalize().replace("this help", "basic help") + args = [] advancedHelp = True