Skip to content

Commit 4147ed0

Browse files
committed
Shorter help for --functions
1 parent 4985a4f commit 4147ed0

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/cli-reference.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ See :ref:`cli_query`.
131131
-r, --raw Raw output, first column of first row
132132
--raw-lines Raw output, first column of each row
133133
-p, --param <TEXT TEXT>... Named :parameters for SQL query
134-
--functions TEXT Python code block or file path defining custom SQL
135-
functions, can be used multiple times
134+
--functions TEXT Python code or file path defining custom SQL
135+
functions
136136
--load-extension TEXT Path to SQLite extension, with optional
137137
:entrypoint
138138
-h, --help Show this message and exit.
@@ -174,8 +174,8 @@ See :ref:`cli_memory`.
174174
sqlite-utils memory animals.csv --schema
175175

176176
Options:
177-
--functions TEXT Python code block or file path defining custom SQL
178-
functions, can be used multiple times
177+
--functions TEXT Python code or file path defining custom SQL
178+
functions
179179
--attach <TEXT FILE>... Additional databases to attach - specify alias and
180180
filepath
181181
--flatten Flatten nested JSON objects, so {"foo": {"bar":
@@ -374,8 +374,7 @@ See :ref:`cli_bulk`.
374374

375375
Options:
376376
--batch-size INTEGER Commit every X records
377-
--functions TEXT Python code block or file path defining custom SQL
378-
functions, can be used multiple times
377+
--functions TEXT Python code or file path defining custom SQL functions
379378
--flatten Flatten nested JSON objects, so {"a": {"b": 1}} becomes
380379
{"a_b": 1}
381380
--nl Expect newline-delimited JSON

sqlite_utils/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ def upsert(
13761376
@click.option("--batch-size", type=int, default=100, help="Commit every X records")
13771377
@click.option(
13781378
"--functions",
1379-
help="Python code block or file path defining custom SQL functions, can be used multiple times",
1379+
help="Python code or file path defining custom SQL functions",
13801380
multiple=True,
13811381
)
13821382
@import_options
@@ -1767,7 +1767,7 @@ def drop_view(path, view, ignore, load_extension):
17671767
)
17681768
@click.option(
17691769
"--functions",
1770-
help="Python code block or file path defining custom SQL functions, can be used multiple times",
1770+
help="Python code or file path defining custom SQL functions",
17711771
multiple=True,
17721772
)
17731773
@load_extension_option
@@ -1833,7 +1833,7 @@ def query(
18331833
@click.argument("sql")
18341834
@click.option(
18351835
"--functions",
1836-
help="Python code block or file path defining custom SQL functions, can be used multiple times",
1836+
help="Python code or file path defining custom SQL functions",
18371837
multiple=True,
18381838
)
18391839
@click.option(

0 commit comments

Comments
 (0)