]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: add argument spec to sqlite3 CLI docs (#99200)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Mon, 7 Nov 2022 13:18:36 +0000 (14:18 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Nov 2022 13:18:36 +0000 (14:18 +0100)
Doc/library/sqlite3.rst

index accbda05b62bf32c21dfcc89a06bbc839f83d616..8deaceb7f38620e51f8262aff0077bb8453fa01d 100644 (file)
@@ -1834,8 +1834,13 @@ The deprecated default adapters and converters consist of:
 Command-line interface
 ^^^^^^^^^^^^^^^^^^^^^^
 
-The :mod:`!sqlite3` module can be invoked as a script
+The :mod:`!sqlite3` module can be invoked as a script,
+using the interpreter's :option:`-m` switch,
 in order to provide a simple SQLite shell.
+The argument signature is as follows::
+
+   python -m sqlite3 [-h] [-v] [filename] [sql]
+
 Type ``.quit`` or CTRL-D to exit the shell.
 
 .. program:: python -m sqlite3 [-h] [-v] [filename] [sql]