def __init__(self, name): CkanCommand.__init__(self, name) # Configure options parser self.parser.add_option('--group', dest='group', help='Specify target group', type=str)
def __init__(self, name): CkanCommand.__init__(self, name) self.parser.add_option('--setup-app', action='store_true', dest='setup_app', default=False) self.parser.disable_interspersed_args()
def __init__(self, name): CkanCommand.__init__(self, name) # Configure options parser self.parser.add_option('-t', '--to', dest='target', help='Specify target', type=str, default='World')
def __init__(self, name): CkanCommand.__init__(self, name) parser = self.parser if 'CKAN_CONFIG' in os.environ: parser.remove_option('--config') parser.add_option('--config', type=str, dest='config', default=os.environ['CKAN_CONFIG']) parser.add_option('--setup-app', action='store_true', dest='setup_app', default=False) parser.disable_interspersed_args() return
def __init__(self, name): CkanCommand.__init__(self, name)