Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion 6 Lib/sqlite3/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def runsource(self, source, filename="<input>", symbol="single"):
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\n"
f"{t.builtin}.version{t.reset} Print underlying SQLite library version\n"
Comment thread
StanFromIreland marked this conversation as resolved.
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 "":
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve :mod:`sqlite3` CLI's ``.help`` message.
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.