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

Method _add_action

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

Source from the content-addressed store, hash-verified

1880 self._container = container
1881
1882 def _add_action(self, action):
1883 if action.required:
1884 msg = 'mutually exclusive arguments must be optional'
1885 raise ValueError(msg)
1886 action = self._container._add_action(action)
1887 self._group_actions.append(action)
1888 return action
1889
1890 def _remove_action(self, action):
1891 self._container._remove_action(action)

Callers

nothing calls this directly

Calls 2

_add_actionMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected