From 3b9bcaede7f266fd274cf8ff55edcff93bebec5e Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Mon, 7 Nov 2022 13:51:05 +0100 Subject: [PATCH] Docs: add argument spec to sqlite3 CLI docs --- 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 accbda05b62bf3..8deaceb7f38620 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]