summaryrefslogtreecommitdiff
path: root/docs/features/modular_commands.rst
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2021-02-19 21:35:13 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2021-02-19 21:35:13 -0500
commit3e180a810e9c4b9d251c135667d1d150b0bbd0dd (patch)
tree03e49d5da86d40efa9118eccfd8bd4bbf3dcf86b /docs/features/modular_commands.rst
parent4c70bdb03d34c43f833bf77c441452cd402d0715 (diff)
parent06aaf962689840631325c70ea7e9056d176c7f67 (diff)
downloadcmd2-git-3e180a810e9c4b9d251c135667d1d150b0bbd0dd.tar.gz
Merge branch 'master' into black
# Conflicts: # cmd2/__init__.py # cmd2/argparse_completer.py # cmd2/argparse_custom.py # cmd2/cmd2.py # cmd2/decorators.py # cmd2/exceptions.py # cmd2/utils.py # examples/arg_decorators.py # examples/argparse_completion.py # examples/modular_commands_main.py # tests/test_argparse_completer.py # tests/test_argparse_custom.py # tests/test_cmd2.py # tests/test_completion.py # tests/test_history.py
Diffstat (limited to 'docs/features/modular_commands.rst')
-rw-r--r--docs/features/modular_commands.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/features/modular_commands.rst b/docs/features/modular_commands.rst
index 8bd9ba2f..fa643080 100644
--- a/docs/features/modular_commands.rst
+++ b/docs/features/modular_commands.rst
@@ -44,7 +44,7 @@ functions with ``help_``, and completer functions with ``complete_``.
A new decorator ``with_default_category`` is provided to categorize all commands within a CommandSet in the
same command category. Individual commands in a CommandSet may be override the default category by specifying a
-specific category with ``cmd.with_category``.
+specific category with ``cmd2.with_category``.
CommandSet command methods will always expect the same parameters as when defined in a ``cmd2.Cmd`` sub-class,
except that ``self`` will now refer to the ``CommandSet`` instead of the cmd2 instance. The cmd2 instance can