deb-python-cliff/cliff/tests
Sean Perry 5d5aeb2f99 Allow subcommands to accept --help when using 'deferred_help'.
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
2015-07-14 10:05:23 -07:00
..
__init__.py Fix default encoding issue with python 2.6 2013-08-12 14:45:23 -04:00
test_app.py Allow subcommands to accept --help when using 'deferred_help'. 2015-07-14 10:05:23 -07:00
test_command.py Pass user command text to the Command object 2015-03-06 12:28:04 -06:00
test_commandmanager.py print the real error cmd argument 2014-11-03 17:12:47 +08:00
test_complete.py use entry points for completion plugins 2013-11-12 18:14:37 -05:00
test_formatters_shell.py Fix a bug in ShellFormatter's escaping of double quotes in strings. 2014-04-03 18:00:22 -04:00
test_formatters_value.py Add value format for list command 2015-05-26 10:18:21 -06:00
test_help.py Use base command for help test 2015-07-07 12:12:24 +01:00
test_interactive.py Correct completion in interactive mode 2015-02-20 23:52:15 +01:00
test_lister.py Rename private attribute to avoid conflict 2014-01-28 20:33:04 -05:00
test_show.py Make show option compatible with Python 2.6. 2014-06-06 00:44:16 +04:00
utils.py Add deprecated attribute to commands 2015-01-14 18:42:24 -06:00