Exemplo n.º 1
0
def main(ctx, debug, server, user, password, config):
    '''
    \b
    Some commands have their own options. To see the help message for a specific command, type
    keeper COMMAND --help
    for example: keeper import --help
    '''
    try:
        params = cli.get_params(config)
        ctx.obj = params
    except Exception as e:
        print(e)
        sys.exit(1)

    if debug:
        params.debug = debug
    if server:
        params.server = server
    if user:
        params.user = user
    if password:
        params.password = password