Lines Matching refs:values
195 format string controlling how short options with values are
775 def process(self, opt, value, values, parser):
785 self.action, self.dest, opt, value, values, parser)
787 def take_action(self, action, dest, opt, value, values, parser):
789 setattr(values, dest, value)
791 setattr(values, dest, self.const)
793 setattr(values, dest, True)
795 setattr(values, dest, False)
797 values.ensure_value(dest, []).append(value)
799 values.ensure_value(dest, []).append(self.const)
801 setattr(values, dest, values.ensure_value(dest, 0) + 1)
845 Update the option values from an arbitrary dictionary, but only
858 Update the option values from an arbitrary dictionary,
913 values for each destination [1]
1149 if true, option default values are processed similarly to option
1150 values from the command line: that is, they are passed to the
1165 values : Values
1166 the set of option values currently being accumulated. Only
1169 Because of the 'rargs', 'largs', and 'values' attributes,
1259 self.values = None
1355 def parse_args(self, args=None, values=None):
1358 values : Values = None)
1359 -> (values : Values, args : [string])
1365 (values, args) where 'values' is a Values instance (with all
1366 your option values) and 'args' is the list of arguments left
1370 if values is None:
1371 values = self.get_default_values()
1384 self.values = values
1387 stop = self._process_args(largs, rargs, values)
1392 return self.check_values(values, args)
1394 def check_values(self, values, args):
1396 check_values(values : Values, args : [string])
1397 -> (values : Values, args : [string])
1399 Check that the supplied option values and leftover arguments are
1400 valid. Returns the option values and leftover arguments
1403 values; subclasses may override as desired.
1405 return (values, args)
1407 def _process_args(self, largs, rargs, values):
1410 values : Values)
1412 Process command-line arguments and populate 'values', consuming
1427 self._process_long_opt(rargs, values)
1431 self._process_short_opts(rargs, values)
1467 def _process_long_opt(self, rargs, values):
1501 option.process(opt, value, values, self)
1503 def _process_short_opts(self, rargs, values):
1536 option.process(opt, value, values, self)