Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b41906

Browse files
committed
Another minor update for Issue #54
1 parent 8b8677b commit 6b41906

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/parse/cmdline.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def cmdLineParser():
3333
try:
3434
parser.add_option("--hh", dest="advancedHelp",
3535
action="store_true",
36-
help="Show advanced help")
36+
help="Show advanced help message and exit")
3737

3838
parser.add_option("-v", dest="verbose", type="int",
3939
help="Verbosity level: 0-6 (default %d)" % defaults.verbose)
@@ -676,6 +676,11 @@ def cmdLineParser():
676676
option._short_opts = ["-hh"]
677677
option._long_opts = []
678678

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+
679684
args = []
680685
advancedHelp = True
681686

0 commit comments

Comments
 (0)