Пример #1
0
 def _reset(self):
     """
   Resets the state set up by init() so that init() may be called again.
 """
     self._state = self.INITIALIZING
     self._option_values = options.Values()
     self._argv = []
Пример #2
0
 def _reset(self):
     """
   Resets the state set up by init() so that init() may be called again.
 """
     self.initialized = False
     self._option_values = options.Values()
     self._argv = []
Пример #3
0
 def get_local_options(self):
   """
     Return the options only defined by __main__.
   """
   new_values = options.Values()
   for opt in self._main_options:
     if opt.dest:
       setattr(new_values, opt.dest, getattr(self._option_values, opt.dest))
   return new_values