MCPcopy Index your code
hub / github.com/python/cpython / print_help

Method print_help

Lib/argparse.py:2838–2848  ·  view source on GitHub ↗
(self, file=None)

Source from the content-addressed store, hash-verified

2836 self._print_message(usage_text, file)
2837
2838 def print_help(self, file=None):
2839 if file is None:
2840 file = _sys.stdout
2841 formatter = self._get_formatter(file=file)
2842 try:
2843 help_text = self.format_help(formatter=formatter)
2844 except TypeError:
2845 # Backward compatibility for formatter classes that
2846 # do not accept the 'formatter' keyword argument.
2847 help_text = self.format_help()
2848 self._print_message(help_text, file)
2849
2850 def _print_message(self, message, file=None):
2851 if message:

Callers 5

mainFunction · 0.95
mainFunction · 0.95
parse_argsFunction · 0.95
__call__Method · 0.45

Calls 3

_get_formatterMethod · 0.95
format_helpMethod · 0.95
_print_messageMethod · 0.95