Skip to content

Commit 5e09aa0

Browse files
Improve help message
1 parent 62b3d2d commit 5e09aa0

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/sqlite3/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def runsource(self, source, filename="<input>", symbol="single"):
6565
case "version":
6666
print(f"{sqlite3.sqlite_version}")
6767
case "help":
68-
print("Enter SQL code and press enter.")
68+
t = theme.syntax
69+
print(f"Enter SQL code or one of the below commands, and press enter.\n\n"
70+
f"{t.builtin}.version{t.reset} Print underlying SQLite library version\n"
71+
f"{t.builtin}.quit{t.reset} Exit the CLI, equivalent to CTRL-D\n")
6972
case "quit":
7073
sys.exit(0)
7174
case "":
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve :mod:`sqlite3` CLI's ``.help`` message.

0 commit comments

Comments
 (0)