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

Method get_default

Lib/argparse.py:1567–1571  ·  view source on GitHub ↗
(self, dest)

Source from the content-addressed store, hash-verified

1565 action.default = kwargs[action.dest]
1566
1567 def get_default(self, dest):
1568 for action in self._actions:
1569 if action.dest == dest and action.default is not None:
1570 return action.default
1571 return self._defaults.get(dest, None)
1572
1573
1574 # =======================

Callers 1

test_get_defaultMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1

test_get_defaultMethod · 0.64