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

Method _get_optional_actions

Lib/argparse.py:2070–2073  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2068 return action
2069
2070 def _get_optional_actions(self):
2071 return [action
2072 for action in self._actions
2073 if action.option_strings]
2074
2075 def _get_positional_actions(self):
2076 return [action

Callers 1

add_subparsersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected