[cli] fixed typo in booleans

This commit is contained in:
Maxime Alves LIRMM 2020-07-09 10:39:48 +02:00
parent 13ac878a7c
commit 7d2bb39593
1 changed files with 3 additions and 3 deletions

View File

@ -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,