summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-10 01:39:36 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-10 01:39:36 -0500
commit647f0727cf8e1c345d7b1e778e1132479f2168fb (patch)
tree95ac8df13aac7d32bbeb25bf3c9b5480e268ee4c /cmd2/cmd2.py
parent102b6c121ccaa645fff02be0928a7342746232b8 (diff)
downloadcmd2-git-647f0727cf8e1c345d7b1e778e1132479f2168fb.tar.gz
Updated examples and documentation pertaining to disabling commands
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index c437c9d5..c9661a1a 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3654,7 +3654,7 @@ class Cmd(cmd.Cmd):
"""
Disable a command and overwrite its functions
:param command: the command being disabled
- :param message_to_print: what to print when this command or its help function is run while disabled
+ :param message_to_print: what to print when this command is run or help is called on it while disabled
"""
import functools
@@ -3683,7 +3683,8 @@ class Cmd(cmd.Cmd):
"""
Disable an entire category of commands
:param category: the category to disable
- :param message_to_print: what to print when anything in this category is run while disabled
+ :param message_to_print: what to print when anything in this category is run or help is called on it
+ while disabled
"""
all_commands = self.get_all_commands()