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)")
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")
def __init__(self): # let the base class setup methods in our class SubCommand.__init__(self) # Give our sub command a name self._name = 'api'