Tiny tweak to CLI option help

This commit is contained in:
Simon Willison 2023-12-07 20:59:56 -08:00
commit 1698a9dcbb
2 changed files with 5 additions and 5 deletions

View file

@ -289,7 +289,7 @@ See :ref:`cli_inserting_data`, :ref:`cli_insert_csv_tsv`, :ref:`cli_insert_unstr
--analyze Run ANALYZE at the end of this operation --analyze Run ANALYZE at the end of this operation
--load-extension TEXT Path to SQLite extension, with optional :entrypoint --load-extension TEXT Path to SQLite extension, with optional :entrypoint
--silent Do not show progress bar --silent Do not show progress bar
--strict Apply STRICT mode to table --strict Apply STRICT mode to created table
--ignore Ignore records if pk already exists --ignore Ignore records if pk already exists
--replace Replace records if pk already exists --replace Replace records if pk already exists
--truncate Truncate table before inserting records, if table --truncate Truncate table before inserting records, if table
@ -346,7 +346,7 @@ See :ref:`cli_upsert`.
--analyze Run ANALYZE at the end of this operation --analyze Run ANALYZE at the end of this operation
--load-extension TEXT Path to SQLite extension, with optional :entrypoint --load-extension TEXT Path to SQLite extension, with optional :entrypoint
--silent Do not show progress bar --silent Do not show progress bar
--strict Apply STRICT mode to table --strict Apply STRICT mode to created table
-h, --help Show this message and exit. -h, --help Show this message and exit.
@ -922,7 +922,7 @@ See :ref:`cli_create_table`.
--replace If table already exists, replace it --replace If table already exists, replace it
--transform If table already exists, try to transform the schema --transform If table already exists, try to transform the schema
--load-extension TEXT Path to SQLite extension, with optional :entrypoint --load-extension TEXT Path to SQLite extension, with optional :entrypoint
--strict Apply STRICT mode to table --strict Apply STRICT mode to created table
-h, --help Show this message and exit. -h, --help Show this message and exit.

View file

@ -904,7 +904,7 @@ def insert_upsert_options(*, require_pk=False):
"--strict", "--strict",
is_flag=True, is_flag=True,
default=False, default=False,
help="Apply STRICT mode to table", help="Apply STRICT mode to created table",
), ),
) )
): ):
@ -1517,7 +1517,7 @@ def create_database(path, enable_wal, init_spatialite, load_extension):
@click.option( @click.option(
"--strict", "--strict",
is_flag=True, is_flag=True,
help="Apply STRICT mode to table", help="Apply STRICT mode to created table",
) )
def create_table( def create_table(
path, path,