Docs: add argument spec to sqlite3 CLI docs (#99200)

This commit is contained in:
Erlend E. Aasland 2022-11-07 14:18:36 +01:00 committed by GitHub
parent 5ff81da6d3
commit e02f1e2df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View 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]