Shorter help for --functions

This commit is contained in:
Simon Willison 2025-11-23 21:45:49 -08:00
commit 4147ed0704
2 changed files with 8 additions and 9 deletions

View file

@ -131,8 +131,8 @@ See :ref:`cli_query`.
-r, --raw Raw output, first column of first row
--raw-lines Raw output, first column of each row
-p, --param <TEXT TEXT>... Named :parameters for SQL query
--functions TEXT Python code block or file path defining custom SQL
functions, can be used multiple times
--functions TEXT Python code or file path defining custom SQL
functions
--load-extension TEXT Path to SQLite extension, with optional
:entrypoint
-h, --help Show this message and exit.
@ -174,8 +174,8 @@ See :ref:`cli_memory`.
sqlite-utils memory animals.csv --schema
Options:
--functions TEXT Python code block or file path defining custom SQL
functions, can be used multiple times
--functions TEXT Python code or file path defining custom SQL
functions
--attach <TEXT FILE>... Additional databases to attach - specify alias and
filepath
--flatten Flatten nested JSON objects, so {"foo": {"bar":
@ -374,8 +374,7 @@ See :ref:`cli_bulk`.
Options:
--batch-size INTEGER Commit every X records
--functions TEXT Python code block or file path defining custom SQL
functions, can be used multiple times
--functions TEXT Python code or file path defining custom SQL functions
--flatten Flatten nested JSON objects, so {"a": {"b": 1}} becomes
{"a_b": 1}
--nl Expect newline-delimited JSON

View file

@ -1376,7 +1376,7 @@ def upsert(
@click.option("--batch-size", type=int, default=100, help="Commit every X records")
@click.option(
"--functions",
help="Python code block or file path defining custom SQL functions, can be used multiple times",
help="Python code or file path defining custom SQL functions",
multiple=True,
)
@import_options
@ -1767,7 +1767,7 @@ def drop_view(path, view, ignore, load_extension):
)
@click.option(
"--functions",
help="Python code block or file path defining custom SQL functions, can be used multiple times",
help="Python code or file path defining custom SQL functions",
multiple=True,
)
@load_extension_option
@ -1833,7 +1833,7 @@ def query(
@click.argument("sql")
@click.option(
"--functions",
help="Python code block or file path defining custom SQL functions, can be used multiple times",
help="Python code or file path defining custom SQL functions",
multiple=True,
)
@click.option(