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

Method _check_nargs

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

Source from the content-addressed store, hash-verified

684 self)
685
686 def _check_nargs(self):
687 if self.action in self.TYPED_ACTIONS:
688 if self.nargs is None:
689 self.nargs = 1
690 elif self.nargs is not None:
691 raise OptionError(
692 "'nargs' must not be supplied for action %r" % self.action,
693 self)
694
695 def _check_callback(self):
696 if self.action == "callback":

Callers

nothing calls this directly

Calls 1

OptionErrorClass · 0.85

Tested by

no test coverage detected