From 6b0f93ce8aec82bb5fba35d2d78d345e690ee5b7 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 27 Apr 2020 18:57:53 -0500 Subject: [PATCH] Update documentation for the -q flag. --- janet.1 | 2 +- src/boot/boot.janet | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/janet.1 b/janet.1 index 5f8a9c02..fc460bf5 100644 --- a/janet.1 +++ b/janet.1 @@ -175,7 +175,7 @@ after an error. Persistent mode can be good for debugging and testing. .TP .BR \-q -Quiet output. Don't print a repl prompt or expression results to stdout. +Hide the logo in the repl. .TP .BR \-k diff --git a/src/boot/boot.janet b/src/boot/boot.janet index b0ca0866..ea676435 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -2537,7 +2537,7 @@ (run-context {:env env :chunks chunks - :expander (fn [x] [pp x]) + :expander (fn [x] (with-syms [g] (apply let [g x] [pp g] [g]))) :on-status (or onsignal (make-onsignal env 1)) :source "repl"})) @@ -2605,7 +2605,7 @@ -d : Set the debug flag in the repl -r : Enter the repl after running all scripts -p : Keep on executing if there is a top level error (persistent) - -q : Hide prompt, logo, and repl output (quiet) + -q : Hide logo (quiet) -k : Compile scripts but do not execute (flycheck) -m syspath : Set system path for loading global modules -c source output : Compile janet source code into an image