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 "":
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
The
.help
command in the sqlite3 CLI does not give much information. It only shows a brief message:It would be better if
.help
displayed a list of available commands, and.help <command>
showed detailed help for that specific command.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
.help
in thesqlite3
CLI #133935.help
message #135224The text was updated successfully, but these errors were encountered: