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

Method _add_action

Lib/argparse.py:2063–2068  ·  view source on GitHub ↗
(self, action)

Source from the content-addressed store, hash-verified

2061 return action
2062
2063 def _add_action(self, action):
2064 if action.option_strings:
2065 self._optionals._add_action(action)
2066 else:
2067 self._positionals._add_action(action)
2068 return action
2069
2070 def _get_optional_actions(self):
2071 return [action

Callers

nothing calls this directly

Calls 1

_add_actionMethod · 0.45

Tested by

no test coverage detected