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

Method add_usage

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

Source from the content-addressed store, hash-verified

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

Callers 4

add_subparsersMethod · 0.80
format_usageMethod · 0.80
format_helpMethod · 0.80

Calls 1

_add_itemMethod · 0.95

Tested by 1