示例#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)
示例#2
0
文件: tailor.py 项目: c0ns0le/cygwin
 def process (self, opt, value, values, parser):
     setattr(values, '__seen_' + self.dest, True)
     return Option.process(self, opt, value, values, parser)
示例#3
0
 def process(self, opt, value, values, parser):
     Option.process(self, opt, value, values, parser)
     parser.option_seen[self] = 1
示例#4
0
 def process(self, opt, value, values, parser):
     setattr(values, '__seen_' + self.dest, True)
     return Option.process(self, opt, value, values, parser)
示例#5
0
 def process (self, opt, value, values, parser):
     Option.process(self, opt, value, values, parser)
     parser.option_seen[self] = 1
示例#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)
示例#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)
示例#8
0
文件: cmdline.py 项目: nsi-iff/pyOLS
 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)