Skip to content

Commit fabe4cd

Browse files
committed
Updating comment
1 parent 67010a9 commit fabe4cd

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
@@ -877,7 +877,7 @@ def _unregister_subcommands(self, cmdset: Union[CommandSet, 'Cmd']) -> None:
877877
if not (cmdset is self or cmdset in self._installed_command_sets):
878878
raise CommandSetRegistrationError('Cannot unregister subcommands with an unregistered CommandSet')
879879

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

0 commit comments

Comments
 (0)