From 7d2bb3959361866098b901c7ae5d937fbd99602b Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Thu, 9 Jul 2020 10:39:48 +0200 Subject: [PATCH] [cli] fixed typo in booleans --- halfapi/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/halfapi/cli.py b/halfapi/cli.py index 7c8c1ab..8e11db6 100755 --- a/halfapi/cli.py +++ b/halfapi/cli.py @@ -77,13 +77,13 @@ def run(envfile, host, port): @click.option('--user', default='api') @click.option('--password', default='') @click.option('--domain', default='organigramme') -@click.option('--drop', is_flag=true, default=false) +@click.option('--drop', is_flag=True, default=False) @cli.command() def dbupdate(dbname, host, port, user, password, domain, drop): def dropdb(): - if not click.confirm(f'will now drop database {dbname}', default=true): - return false + if not click.confirm(f'will now drop database {dbname}', default=True): + return False conn = psycopg2.connect({ 'dbname': dbname,