You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/06/17 00:50:57 UTC

(superset) branch master updated: fix(cli): inconsistent options for set-database-uri (#34893)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b66443d48c fix(cli): inconsistent options for set-database-uri (#34893)
5b66443d48c is described below

commit 5b66443d48c386284d2513f5cb647d7e5147313d
Author: Gabriel Bourgeois <ga...@gmail.com>
AuthorDate: Tue Jun 16 20:50:51 2026 -0400

    fix(cli): inconsistent options for set-database-uri (#34893)
---
 superset/cli/update.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset/cli/update.py b/superset/cli/update.py
index 4dbe96ff078..6e928ec8eda 100755
--- a/superset/cli/update.py
+++ b/superset/cli/update.py
@@ -39,14 +39,14 @@ logger = logging.getLogger(__name__)
 @click.command()
 @with_appcontext
 @transaction()
-@click.option("--database_name", "-d", help="Database name to change")
-@click.option("--uri", "-u", help="Database URI to change")
+@click.option("--database_name", "-d", required=True, help="Database name to change")
+@click.option("--uri", "-u", required=True, help="Database URI to change")
 @click.option(
     "--skip_create",
     "-s",
     is_flag=True,
     default=False,
-    help="Create the DB if it doesn't exist",
+    help="Don't create the DB if it doesn't exist",
 )
 def set_database_uri(database_name: str, uri: str, skip_create: bool) -> None:
     """Updates a database connection URI"""