Skip to content

Commit e452038

Browse files
committed
Tweak CLI ...
* Mention Quit[] will leave CLI * Allow --colors=None as an alias for --colors=NoColor "None" matches the --style option of mathicssscript
1 parent b8343a4 commit e452038

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

mathics/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def __init__(self, definitions, colors, want_readline, want_completion):
6262

6363
color_schemes = {
6464
"NOCOLOR": (["", "", "", ""], ["", "", "", ""]),
65+
"NONE": (["", "", "", ""], ["", "", "", ""]),
6566
"LINUX": (
6667
["\033[32m", "\033[1m", "\033[22m", "\033[39m"],
6768
["\033[31m", "\033[1m", "\033[22m", "\033[39m"],
@@ -248,7 +249,7 @@ def main() -> int:
248249
"multiple times)",
249250
)
250251

251-
argparser.add_argument("--colors", nargs="?", help="interactive shell colors. Use value 'NoColor' to disable ANSI color decoration")
252+
argparser.add_argument("--colors", nargs="?", help="interactive shell colors. Use value 'NoColor' or 'None' to disable ANSI color decoration")
252253

253254
argparser.add_argument(
254255
"--no-completion", help="disable tab completion", action="store_true"
@@ -347,7 +348,7 @@ def main() -> int:
347348
print()
348349
print(version_string + "\n")
349350
print(license_string + "\n")
350-
print("Quit by pressing {0}\n".format(quit_command))
351+
print(f"Quit by evaluating Quit[] or by pressing {quit_command}.\n")
351352

352353
while True:
353354
try:

0 commit comments

Comments
 (0)