summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2021-03-23 10:56:19 -0400
committerEric Lin <anselor@gmail.com>2021-03-23 10:56:19 -0400
commitfabe4cd01b339d628ffd0b8d9b202a4a41555b8b (patch)
tree7336d672573573a1ce30246ade1723676275d0bf /cmd2/cmd2.py
parent67010a9953d4ede7e509935a8481ebb5efc9910c (diff)
downloadcmd2-git-fabe4cd01b339d628ffd0b8d9b202a4a41555b8b.tar.gz
Updating comment
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 013b5837..f7188cb4 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -877,7 +877,7 @@ class Cmd(cmd.Cmd):
if not (cmdset is self or cmdset in self._installed_command_sets):
raise CommandSetRegistrationError('Cannot unregister subcommands with an unregistered CommandSet')
- # find all methods that start with the subcommand prefix
+ # find methods that have the required attributes necessary to be recognized as a sub-command
methods = inspect.getmembers(
cmdset,
predicate=lambda meth: isinstance(meth, Callable)