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

Method check_values

Lib/optparse.py:1384–1395  ·  view source on GitHub ↗

check_values(values : Values, args : [string]) -> (values : Values, args : [string]) Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new -- what

(self, values, args)

Source from the content-addressed store, hash-verified

1382 return self.check_values(values, args)
1383
1384 def check_values(self, values, args):
1385 """
1386 check_values(values : Values, args : [string])
1387 -> (values : Values, args : [string])
1388
1389 Check that the supplied option values and leftover arguments are
1390 valid. Returns the option values and leftover arguments
1391 (possibly adjusted, possibly completely new -- whatever you
1392 like). Default implementation just returns the passed-in
1393 values; subclasses may override as desired.
1394 """
1395 return (values, args)
1396
1397 def _process_args(self, largs, rargs, values):
1398 """_process_args(largs : [string],

Callers 1

parse_argsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected