MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / add_usage

Method add_usage

tools/python-3.11.9-amd64/Lib/argparse.py:256–259  ·  view source on GitHub ↗
(self, usage, actions, groups, prefix=None)

Source from the content-addressed store, hash-verified

254 self._add_item(self._format_text, [text])
255
256 def add_usage(self, usage, actions, groups, prefix=None):
257 if usage is not SUPPRESS:
258 args = usage, actions, groups, prefix
259 self._add_item(self._format_usage, args)
260
261 def add_argument(self, action):
262 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