示例#1
0
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Add global arguments for this subcommand
     self.opt('-c', '--config', default=LunrConfig.lunr_storage_config,
              help="config file (default: /etc/lunr/storage-server.conf)")
     self.opt('-v', '--verbose', action='count',
              help="be verbose (-vv is more verbose)")
示例#2
0
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Add global arguments for this subcommand
     self.opt('-c', '--config', default=None,
              help="config file (default: /etc/lunr/storage-server.conf)")
     self.opt('-v', '--verbose', action='count',
              help="be verbose (-vv is more verbose)")
     self.opt('-u', '--url', default=None, help="lunr admin api url")
示例#3
0
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Give our sub command a name
     self._name = 'api'
示例#4
0
 def __init__(self):
     # let the base class setup methods in our class
     SubCommand.__init__(self)
     # Give our sub command a name
     self._name = 'api'