From fabe4cd01b339d628ffd0b8d9b202a4a41555b8b Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Tue, 23 Mar 2021 10:56:19 -0400 Subject: Updating comment --- cmd2/cmd2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2') 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) -- cgit v1.2.1