예제 #1
0
 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
예제 #2
0
 def __init__(self, name, summary):
     self.summary = summary
     Command.__init__(self, name)
예제 #3
0
파일: paster.py 프로젝트: jkrebs/pyramid
 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)
예제 #4
0
파일: shell.py 프로젝트: helixyte/TheLMA
 def __init__(self, name):
     Command.__init__(self, name)
     self._report_callback = lambda : None
예제 #5
0
 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)
예제 #6
0
 def __init__(self, name):
     Command.__init__(self, name)
     self._report_callback = lambda: None
예제 #7
0
 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