5d5aeb2f99
This patch changes how cliff handles help for subcommands but only when 'deferred_help' is enabled. Currently cliff consumes --help requests at the top level. This means `myapp foo --help` and `myapp --help` produce the same output. To get help for `foo` one must use `myapp help foo`. With this change `myapp foo --help` will produce the same output as `myapp help foo` by transforming the --help request into a help subcommand one. This is only done when there are any options on the command line other than --help. When a top level --help is requested the original behavior of print_help_if_requested() is preserved. Change-Id: I628bbfc383de516045288512cc023213d723a027 Closes-Bug: 1444983 |
||
---|---|---|
.. | ||
__init__.py | ||
test_app.py | ||
test_command.py | ||
test_commandmanager.py | ||
test_complete.py | ||
test_formatters_shell.py | ||
test_formatters_value.py | ||
test_help.py | ||
test_interactive.py | ||
test_lister.py | ||
test_show.py | ||
utils.py |