diff --git a/docs/cli-reference.rst b/docs/cli-reference.rst index 6e09886..adbb1d1 100644 --- a/docs/cli-reference.rst +++ b/docs/cli-reference.rst @@ -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 ... 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 ... 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 diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index 5372fdc..66e5e27 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -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(