We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8c729 commit a220442Copy full SHA for a220442
Lib/sqlite3/__main__.py
@@ -113,7 +113,8 @@ def main(*args):
113
Type ".help" for more information; type ".quit" or {eofkey} to quit.
114
""").strip()
115
116
- s = get_theme().syntax
+ theme = get_theme()
117
+ s = theme.syntax
118
119
sys.ps1 = f"{s.prompt}sqlite> {s.reset}"
120
sys.ps2 = f"{s.prompt} ... {s.reset}"
@@ -122,7 +123,7 @@ def main(*args):
122
123
try:
124
if args.sql:
125
# SQL statement provided on the command-line; execute it directly.
- execute(con, args.sql, suppress_errors=False)
126
+ execute(con, args.sql, suppress_errors=False, theme=theme)
127
else:
128
# No SQL provided; start the REPL.
129
console = SqliteInteractiveConsole(con, use_color=True)
0 commit comments