MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / remove

Method remove

cmd2/cmd2.py:299–303  ·  view source on GitHub ↗

Remove a given method's parser if it exists.

(self, command_method: BoundCommandFunc)

Source from the content-addressed store, hash-verified

297 return self._parsers.get(full_method_name)
298
299 def remove(self, command_method: BoundCommandFunc) -> None:
300 """Remove a given method's parser if it exists."""
301 full_method_name = self._fully_qualified_name(command_method)
302 if full_method_name in self._parsers:
303 del self._parsers[full_method_name]
304
305
306@dataclass(kw_only=True)

Callers 12

_expandMethod · 0.80
_update_mutex_groupsMethod · 0.80
register_command_setMethod · 0.80
_build_command_infoMethod · 0.80
do_historyMethod · 0.80
hist_fileFunction · 0.80
test_output_redirectionFunction · 0.80

Calls 1

_fully_qualified_nameMethod · 0.95

Tested by 5

hist_fileFunction · 0.64
test_output_redirectionFunction · 0.64