Skip to content

Commit

Permalink
Fixing flag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
craig-rueda committed Jan 25, 2021
1 parent ebcd0f4 commit 3613cc0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superset/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ def load_examples(
@click.option("--database_name", "-d", help="Database name to change")
@click.option("--uri", "-u", help="Database URI to change")
@click.option(
"--always_create",
"-a",
"--skip_create",
"-s",
is_flag=True,
default=True,
default=False,
help="Create the DB if it doesn't exist",
)
def set_database_uri(database_name: str, uri: str, always_create: bool) -> None:
def set_database_uri(database_name: str, uri: str, skip_create: bool) -> None:
"""Updates a database connection URI """
utils.get_or_create_db(database_name, uri, always_create)
utils.get_or_create_db(database_name, uri, not skip_create)


@superset.command()
Expand Down

0 comments on commit 3613cc0

Please sign in to comment.