From e02f1e2df935b0ca70ddded7676089b8fb879781 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Mon, 7 Nov 2022 14:18:36 +0100 Subject: Docs: add argument spec to sqlite3 CLI docs (#99200) --- Doc/library/sqlite3.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index accbda0..8deaceb 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] -- cgit v0.12