File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ def runsource(self, source, filename="<input>", symbol="single"):
6565
case "version":
6666
print(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}.help{t.reset} Print this help message\n"
72+
f"{t.builtin}.quit{t.reset} Exit the CLI, equivalent to CTRL-D\n")
6973
case "quit":
7074
sys.exit(0)
7175
case "":
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve :mod:`sqlite3` CLI's ``.help`` message.

0 commit comments

Comments
 (0)