mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1184780 - Use command help instead of main help; r=gps
--HG-- extra : commitid : MLpRMrje13 extra : amend_source : ff2038edce79b1b610be52e2908681d6de5edda2
This commit is contained in:
parent
d78e47a8b5
commit
8d41cd6385
@ -105,10 +105,10 @@ class CommandAction(argparse.Action):
|
||||
# -- is in command arguments
|
||||
if '-h' in args[:args.index('--')] or '--help' in args[:args.index('--')]:
|
||||
# Honor -h or --help only if it appears before --
|
||||
self._handle_main_help(parser, command)
|
||||
self._handle_command_help(parser, command)
|
||||
sys.exit(0)
|
||||
else:
|
||||
self._handle_main_help(parser, command)
|
||||
self._handle_command_help(parser, command)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user