def __init__(self, name): # Init base class Command.__init__(self, name) # Parser configuration self.parser.add_option("-f", "--file", dest="file", help="write report to FILE", metavar="FILE") self.parser.add_option("-x", "--foo", dest="foo", help="assign a value for foo", metavar="FOO") self.parser.add_option("-q", "--quiet", action="store_false", dest="verbose", default=True, help="don't print status messages to stdout") return
def __init__(self, name, summary): self.summary = summary Command.__init__(self, name)
def __init__(self, *arg, **kw): # needs to be in constructor to support Jython (used to be at class # scope as ``usage = '\n' + __doc__``. self.usage = '\n' + self.__doc__ Command.__init__(self, *arg, **kw)
def __init__(self, name): Command.__init__(self, name) self._report_callback = lambda : None
def __init__(self, name): Command.__init__(self, name) self._report_callback = lambda: None
def __init__(self, name): Command.__init__(self, name) self.parser = Command.standard_parser(verbose=False) self.parser.add_option('-c', '--config', dest='config', default='development.ini', help='Config file to use.') return