diff options
| author | Kory Gill <korygill@users.noreply.github.com> | 2021-02-13 20:43:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-13 20:43:37 -0800 |
| commit | c99a2be9a69f2de3f313ce9579de53220357f017 (patch) | |
| tree | b377a0b3e1132b9ac47e7b5d666bc74a7881fca0 /docs | |
| parent | 81cbc40b5dfa6f615a621ed42c6ed437faabb4da (diff) | |
| download | cmd2-git-c99a2be9a69f2de3f313ce9579de53220357f017.tar.gz | |
Update modular_commands.rst
Minor fix to use cmd2 intead of cmd in example text.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/features/modular_commands.rst | 2 |
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 |
