Skip to content

Commit 67010a9

Browse files
committed
Updated out of date comment
1 parent 8f981f3 commit 67010a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def _register_subcommands(self, cmdset: Union[CommandSet, 'Cmd']) -> None:
772772
if not (cmdset is self or cmdset in self._installed_command_sets):
773773
raise CommandSetRegistrationError('Cannot register subcommands with an unregistered CommandSet')
774774

775-
# find all methods that start with the subcommand prefix
775+
# find methods that have the required attributes necessary to be recognized as a sub-command
776776
methods = inspect.getmembers(
777777
cmdset,
778778
predicate=lambda meth: isinstance(meth, Callable)

0 commit comments

Comments
 (0)