mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-133934: Mention special commands in sqlite3 .help message (GH-135224)
This commit is contained in:
parent
ecd83e02b1
commit
13efe3f599
2 changed files with 6 additions and 1 deletions
|
|
@ -65,7 +65,11 @@ def runsource(self, source, filename="<input>", symbol="single"):
|
|||
case "version":
|
||||
print(sqlite3.sqlite_version)
|
||||
case "help":
|
||||
print("Enter SQL code and press enter.")
|
||||
t = theme.syntax
|
||||
print(f"Enter SQL code or one of the below commands, and press enter.\n\n"
|
||||
f"{t.builtin}.version{t.reset} Print underlying SQLite library version\n"
|
||||
f"{t.builtin}.help{t.reset} Print this help message\n"
|
||||
f"{t.builtin}.quit{t.reset} Exit the CLI, equivalent to CTRL-D\n")
|
||||
case "quit":
|
||||
sys.exit(0)
|
||||
case "":
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Improve :mod:`sqlite3` CLI's ``.help`` message.
|
||||
Loading…
Add table
Add a link
Reference in a new issue