[cli] fixed typo in booleans
This commit is contained in:
parent
13ac878a7c
commit
7d2bb39593
|
@ -77,13 +77,13 @@ def run(envfile, host, port):
|
||||||
@click.option('--user', default='api')
|
@click.option('--user', default='api')
|
||||||
@click.option('--password', default='')
|
@click.option('--password', default='')
|
||||||
@click.option('--domain', default='organigramme')
|
@click.option('--domain', default='organigramme')
|
||||||
@click.option('--drop', is_flag=true, default=false)
|
@click.option('--drop', is_flag=True, default=False)
|
||||||
@cli.command()
|
@cli.command()
|
||||||
def dbupdate(dbname, host, port, user, password, domain, drop):
|
def dbupdate(dbname, host, port, user, password, domain, drop):
|
||||||
|
|
||||||
def dropdb():
|
def dropdb():
|
||||||
if not click.confirm(f'will now drop database {dbname}', default=true):
|
if not click.confirm(f'will now drop database {dbname}', default=True):
|
||||||
return false
|
return False
|
||||||
|
|
||||||
conn = psycopg2.connect({
|
conn = psycopg2.connect({
|
||||||
'dbname': dbname,
|
'dbname': dbname,
|
||||||
|
|
Loading…
Reference in New Issue