Ejemplo n.º 1
0
    def process(self, *args, **kwds):
        """Method invoked by the command line parser when it sees
        this option on the command line.

        This method simply makes note of the fact that the option
        was seen on the command line, and calls the superclass.
        """
        self._seen = True
        return Option.process(self, *args, **kwds)
Ejemplo n.º 2
0
 def process (self, opt, value, values, parser):
     setattr(values, '__seen_' + self.dest, True)
     return Option.process(self, opt, value, values, parser)
Ejemplo n.º 3
0
 def process(self, opt, value, values, parser):
     Option.process(self, opt, value, values, parser)
     parser.option_seen[self] = 1
Ejemplo n.º 4
0
 def process(self, opt, value, values, parser):
     setattr(values, '__seen_' + self.dest, True)
     return Option.process(self, opt, value, values, parser)
Ejemplo n.º 5
0
 def process (self, opt, value, values, parser):
     Option.process(self, opt, value, values, parser)
     parser.option_seen[self] = 1
Ejemplo n.º 6
0
 def process(self, *args):
     # uuhh... See optparse.py if this doesn't make sense
     ini_option = self.get_opt_string().replace('--', '').replace('-', '_')
     if ini_option != 'create':
         OptionsMemory.changed.append(ini_option)
     Option.process(self, *args)
Ejemplo n.º 7
0
 def process(self, opt, value, values, parser):
     if self.action in self.TYPE_HANDLING_ACTIONS:
         return self.take_action(self.action, self.dest, opt, value, values,
                                 parser)
     else:
         return _Option.process(self, opt, value, values, parser)
Ejemplo n.º 8
0
 def process(self, *args):
     # uuhh... See optparse.py if this doesn't make sense
     ini_option = self.get_opt_string().replace('--','').replace('-', '_')
     if ini_option != 'create':
         OptionsMemory.changed.append(ini_option)
     Option.process(self, *args)