MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / _report_disabled_command_usage

Method _report_disabled_command_usage

cmd2/cmd2.py:5722–5729  ·  view source on GitHub ↗

Report when a disabled command or its help function is run. :param _args: not used :param message_to_print: the message reporting that the command is disabled :param _kwargs: not used

(self, *_args: Any, message_to_print: str, **_kwargs: Any)

Source from the content-addressed store, hash-verified

5720 self.disabled_categories[category] = message_to_print
5721
5722 def _report_disabled_command_usage(self, *_args: Any, message_to_print: str, **_kwargs: Any) -> None:
5723 """Report when a disabled command or its help function is run.
5724
5725 :param _args: not used
5726 :param message_to_print: the message reporting that the command is disabled
5727 :param _kwargs: not used
5728 """
5729 self.perror(message_to_print, style=None)
5730
5731 def _disabled_completer(self, *_args: Any, **_kwargs: Any) -> Completions:
5732 """Completer function for a disabled command.

Callers 1

do_helpMethod · 0.95

Calls 1

perrorMethod · 0.95

Tested by

no test coverage detected