Пример #1
0
 def __init__(self, options=None): # Default values should never be collections (like []) as default values are shared between invocations
     options_list = (options or []) + [
         make_option("--no-confirm", action="store_false", dest="confirm", default=True, help="Do not ask the user for confirmation before running the queue.  Dangerous!"),
         make_option("--exit-after-iteration", action="store", type="int", dest="iterations", default=None, help="Stop running the queue after iterating this number of times."),
     ]
     Command.__init__(self, "Run the %s" % self.name, options=options_list)
     self._iteration_count = 0
Пример #2
0
 def __init__(self, options=None): # Default values should never be collections (like []) as default values are shared between invocations
     options_list = (options or []) + [
         make_option("--no-confirm", action="store_false", dest="confirm", default=True, help="Do not ask the user for confirmation before running the queue.  Dangerous!"),
     ]
     Command.__init__(self, "Run the %s" % self.name, options=options_list)
Пример #3
0
 def __init__(self, options=None): # Default values should never be collections (like []) as default values are shared between invocations
     options_list = (options or []) + [
         make_option("--no-confirm", action="store_false", dest="confirm", default=True, help="Do not ask the user for confirmation before running the queue.  Dangerous!"),
     ]
     Command.__init__(self, "Run the %s" % self.name, options=options_list)