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

Method _check_action

Lib/optparse.py:622–626  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

620 # -- Constructor validation methods --------------------------------
621
622 def _check_action(self):
623 if self.action is None:
624 self.action = "store"
625 elif self.action not in self.ACTIONS:
626 raise OptionError("invalid action: %r" % self.action, self)
627
628 def _check_type(self):
629 if self.type is None:

Callers

nothing calls this directly

Calls 1

OptionErrorClass · 0.85

Tested by

no test coverage detected