gh-133934: Mention special commands in sqlite3 .help message (GH-135224)

This commit is contained in:
Stan Ulbrych 2025-06-19 12:47:29 +01:00 committed by GitHub
parent ecd83e02b1
commit 13efe3f599
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -65,7 +65,11 @@ class SqliteInteractiveConsole(InteractiveConsole):
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 "":

View file

@ -0,0 +1 @@
Improve :mod:`sqlite3` CLI's ``.help`` message.