You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,10 @@
15
15
*``exclude_from_help`` is now called ``hidden_commands`` since these commands are hidden from things other than help, including tab completion
16
16
* This list also no longer takes the function names of commands (``do_history``), but instead uses the command names themselves (``history``)
17
17
*``excludeFromHistory`` is now called ``exclude_from_history``
18
+
*``cmd_with_subs_completer()`` no longer takes an argument called ``base``. Adding tab completion to subcommands has been simplified to declaring it in the
19
+
subcommand parser's default settings. This easily allows arbitrary completers like path_complete to be used.
20
+
See [subcommands.py](https://github.com/python-cmd2/cmd2/blob/master/examples/subcommands.py) for an example of how to use
21
+
tab completion in subcommands. In addition, the docstring for ``cmd_with_subs_completer()`` offers more details.
18
22
19
23
20
24
## 0.8.2 (March 21, 2018)
@@ -75,7 +79,7 @@
75
79
* See the [Argument Processing](http://cmd2.readthedocs.io/en/latest/argument_processing.html) section of the documentation for more information on these decorators
76
80
* Alternatively, see the [argparse_example.py](https://github.com/python-cmd2/cmd2/blob/master/examples/argparse_example.py)
77
81
and [arg_print.py](https://github.com/python-cmd2/cmd2/blob/master/examples/arg_print.py) examples
78
-
* Added support for Argpasre sub-commands when using the **with_argument_parser** or **with_argparser_and_unknown_args** decorators
82
+
* Added support for Argparse sub-commands when using the **with_argument_parser** or **with_argparser_and_unknown_args** decorators
79
83
* See [subcommands.py](https://github.com/python-cmd2/cmd2/blob/master/examples/subcommands.py) for an example of how to use subcommands
80
84
* Tab-completion of sub-command names is automatically supported
81
85
* The **__relative_load** command is now hidden from the help menu by default
0 commit comments