diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 088a1c7e..013b5837 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -772,7 +772,7 @@ class Cmd(cmd.Cmd): if not (cmdset is self or cmdset in self._installed_command_sets): raise CommandSetRegistrationError('Cannot register 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) |