diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-19 10:06:19 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-19 10:06:19 -0400 |
commit | 920a9faa050441fbe064eed200f74dbdc0ba9663 (patch) | |
tree | 8c9007dd44d5d3e1ef5a5171783acbc606f2ca29 /docs/features/argument_processing.rst | |
parent | 128d94accb0a6a8ab7197d26dab2cdafd83a1922 (diff) | |
download | cmd2-git-920a9faa050441fbe064eed200f74dbdc0ba9663.tar.gz |
Changed all uses of sub-command to subcommand
Diffstat (limited to 'docs/features/argument_processing.rst')
-rw-r--r-- | docs/features/argument_processing.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/features/argument_processing.rst b/docs/features/argument_processing.rst index d0f2c137..4d87282c 100644 --- a/docs/features/argument_processing.rst +++ b/docs/features/argument_processing.rst @@ -326,19 +326,19 @@ The Namespace is passed by the decorators to the ``argparse`` parsing functions which gives your custom code access to the state data it needs for its parsing logic. -Sub-commands +Subcommands ------------ -Sub-commands are supported for commands using either the ``@with_argparser`` or +Subcommands are supported for commands using either the ``@with_argparser`` or ``@with_argparser_and_unknown_args`` decorator. The syntax for supporting them is based on argparse sub-parsers. -You may add multiple layers of sub-commands for your command. Cmd2 will -automatically traverse and tab-complete sub-commands for all commands using +You may add multiple layers of subcommands for your command. Cmd2 will +automatically traverse and tab-complete subcommands for all commands using argparse. See the subcommands_ and tab_autocompletion_ example to learn more about how to -use sub-commands in your ``cmd2`` application. +use subcommands in your ``cmd2`` application. .. _subcommands: https://github.com/python-cmd2/cmd2/blob/master/examples/subcommands.py .. _tab_autocompletion: https://github.com/python-cmd2/cmd2/blob/master/examples/tab_autocompletion.py |