diff --git a/docs/cli-reference.rst b/docs/cli-reference.rst index b1a652e..6ef7052 100644 --- a/docs/cli-reference.rst +++ b/docs/cli-reference.rst @@ -1206,7 +1206,7 @@ See :ref:`cli_drop_table`. sqlite-utils drop-table chickens.db chickens Options: - --ignore + --ignore If table does not exist, do nothing --load-extension TEXT SQLite extensions to load -h, --help Show this message and exit. @@ -1250,7 +1250,7 @@ See :ref:`cli_drop_view`. sqlite-utils drop-view chickens.db heavy_chickens Options: - --ignore + --ignore If view does not exist, do nothing --load-extension TEXT SQLite extensions to load -h, --help Show this message and exit. diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index c940b30..09e441c 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -1493,7 +1493,7 @@ def duplicate(path, table, new_table, load_extension): required=True, ) @click.argument("table") -@click.option("--ignore", is_flag=True) +@click.option("--ignore", is_flag=True, help="If table does not exist, do nothing") @load_extension_option def drop_table(path, table, ignore, load_extension): """Drop the specified table @@ -1563,7 +1563,7 @@ def create_view(path, view, select, ignore, replace, load_extension): required=True, ) @click.argument("view") -@click.option("--ignore", is_flag=True) +@click.option("--ignore", is_flag=True, help="If view does not exist, do nothing") @load_extension_option def drop_view(path, view, ignore, load_extension): """Drop the specified view