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

Skip to content

Commit 47b6e69

Browse files
committed
Minor update for Issue #54
1 parent 3af1532 commit 47b6e69

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
@@ -696,7 +696,12 @@ def cmdLineParser():
696696
if not found:
697697
parser.option_groups.remove(group)
698698

699-
(args, _) = parser.parse_args(args)
699+
try:
700+
(args, _) = parser.parse_args(args)
701+
except SystemExit:
702+
if '-h' in sys.argv:
703+
print "\n[!] to see full list of options run with '-hh'"
704+
raise
700705

701706
# Expand given mnemonic options (e.g. -z "ign,flu,bat")
702707
for i in xrange(len(sys.argv) - 1):

0 commit comments

Comments
 (0)