Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b8677b commit 6b41906Copy full SHA for 6b41906
1 file changed
lib/parse/cmdline.py
@@ -33,7 +33,7 @@ def cmdLineParser():
33
try:
34
parser.add_option("--hh", dest="advancedHelp",
35
action="store_true",
36
- help="Show advanced help")
+ help="Show advanced help message and exit")
37
38
parser.add_option("-v", dest="verbose", type="int",
39
help="Verbosity level: 0-6 (default %d)" % defaults.verbose)
@@ -676,6 +676,11 @@ def cmdLineParser():
676
option._short_opts = ["-hh"]
677
option._long_opts = []
678
679
+ # Dirty hack for inherent help messages of switches --version and -h
680
+ for option in ('-h', '--version'):
681
+ _ = parser.get_option(option)
682
+ _.help = _.help.capitalize().replace("this help", "basic help")
683
+
684
args = []
685
advancedHelp = True
686
0 commit comments