You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We only need help for two commands, how about we hard-code it? I wrote a patch which can be seen below.
Subject: [PATCH] Expand help
---
Index: Lib/sqlite3/__main__.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================diff --git a/Lib/sqlite3/__main__.py b/Lib/sqlite3/__main__.py--- a/Lib/sqlite3/__main__.py (revision 0df15d0d4d55dcf7b7a7f4b2985bf84fd092d257)+++ b/Lib/sqlite3/__main__.py (date 1749219376897)@@ -63,7 +63,10 @@
case "version":
print(f"{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"+ f"{t.builtin}.version{t.reset} Print the SQLite version\n"+ f"{t.builtin}.quit{t.reset} Exit the CLI, equivalent to CTRL-D\n")
case "quit":
sys.exit(0)
case "":
Activity
StanFromIreland commentedon Jun 6, 2025
We only need help for two commands, how about we hard-code it? I wrote a patch which can be seen below.
What do you think @erlend-aasland of this approach?
erlend-aasland commentedon Jun 6, 2025
SGTM, Stan.
gh-133934: Mention special commands in sqlite3 `.help` message (GH-13…
pythongh-133934: Mention special commands in sqlite3 `.help` message (p…
pythongh-133934: Mention special commands in sqlite3 `.help` message (p…
pythongh-133934: Mention special commands in sqlite3 `.help` message (p…
pythongh-133934: Mention special commands in sqlite3 `.help` message (p…