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

Method format_help

cmd2/argparse_utils.py:878–880  ·  view source on GitHub ↗

Override to add a newline.

(self)

Source from the content-addressed store, hash-verified

876 return self.formatter_class(prog=self.prog, file=self._thread_locals.current_output_file)
877
878 def format_help(self) -> str:
879 """Override to add a newline."""
880 return super().format_help() + "\n"
881
882 def _get_nargs_pattern(self, action: argparse.Action) -> str:
883 """Override to support nargs ranges."""

Callers 6

test_apcustom_usageFunction · 0.95
_build_hintFunction · 0.80
test_command_synonymsFunction · 0.80

Calls

no outgoing calls

Tested by 5

test_apcustom_usageFunction · 0.76
test_command_synonymsFunction · 0.64