From: Erlend E. Aasland Date: Mon, 7 Nov 2022 13:18:36 +0000 (+0100) Subject: Docs: add argument spec to sqlite3 CLI docs (#99200) X-Git-Tag: v3.12.0a2~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e02f1e2df935b0ca70ddded7676089b8fb879781;p=thirdparty%2FPython%2Fcpython.git Docs: add argument spec to sqlite3 CLI docs (#99200) --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index accbda05b62b..8deaceb7f386 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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]