MCPcopy Index your code
hub / github.com/RustPython/RustPython / add_usage

Method add_usage

Lib/argparse.py:275–278  ·  view source on GitHub ↗
(self, usage, actions, groups, prefix=None)

Source from the content-addressed store, hash-verified

273 self._add_item(self._format_text, [text])
274
275 def add_usage(self, usage, actions, groups, prefix=None):
276 if usage is not SUPPRESS:
277 args = usage, actions, groups, prefix
278 self._add_item(self._format_usage, args)
279
280 def add_argument(self, action):
281 if action.help is not SUPPRESS:

Callers 3

add_subparsersMethod · 0.80
format_usageMethod · 0.80
format_helpMethod · 0.80

Calls 1

_add_itemMethod · 0.95

Tested by

no test coverage detected