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 |
||
---|---|---|
.. | ||
formatters | ||
tests | ||
__init__.py | ||
app.py | ||
command.py | ||
commandmanager.py | ||
complete.py | ||
display.py | ||
help.py | ||
interactive.py | ||
lister.py | ||
show.py |