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

Method format_usage

Lib/argparse.py:2779–2784  ·  view source on GitHub ↗
(self, formatter=None)

Source from the content-addressed store, hash-verified

2777 # =======================
2778
2779 def format_usage(self, formatter=None):
2780 if formatter is None:
2781 formatter = self._get_formatter()
2782 formatter.add_usage(self.usage, self._actions,
2783 self._mutually_exclusive_groups)
2784 return formatter.format_help()
2785
2786 def format_help(self, formatter=None):
2787 if formatter is None:

Calls 3

_get_formatterMethod · 0.95
add_usageMethod · 0.80
format_helpMethod · 0.45