mirror of
https://github.com/janet-lang/janet
synced 2024-12-25 07:50:27 +00:00
Update manpage and make -k mode not exit on error.
This commit is contained in:
parent
8de999c8f7
commit
97ad4c4f89
6
janet.1
6
janet.1
@ -3,7 +3,7 @@
|
|||||||
janet \- run the Janet language abstract machine
|
janet \- run the Janet language abstract machine
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B janet
|
.B janet
|
||||||
[\fB\-hvsrpnq\fR]
|
[\fB\-hvsrpnqk\fR]
|
||||||
[\fB\-e\fR \fISOURCE\fR]
|
[\fB\-e\fR \fISOURCE\fR]
|
||||||
[\fB\-l\fR \fIMODULE\fR]
|
[\fB\-l\fR \fIMODULE\fR]
|
||||||
[\fB\-m\fR \fIPATH\fR]
|
[\fB\-m\fR \fIPATH\fR]
|
||||||
@ -67,6 +67,10 @@ after an error. Persistent mode can be good for debugging and testing.
|
|||||||
.BR \-q
|
.BR \-q
|
||||||
Quiet output. Don't print a repl prompt or expression results to stdout.
|
Quiet output. Don't print a repl prompt or expression results to stdout.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BR \-k
|
||||||
|
Don't execute a script, only compile it to check for errors. Useful for linting scripts.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.BR \-m\ syspath
|
.BR \-m\ syspath
|
||||||
Set the variable module/*syspath* to the string syspath so that Janet will load system modules
|
Set the variable module/*syspath* to the string syspath so that Janet will load system modules
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
"r" (fn [&] (set *should-repl* true) 1)
|
"r" (fn [&] (set *should-repl* true) 1)
|
||||||
"p" (fn [&] (set *exit-on-error* false) 1)
|
"p" (fn [&] (set *exit-on-error* false) 1)
|
||||||
"q" (fn [&] (set *quiet* true) 1)
|
"q" (fn [&] (set *quiet* true) 1)
|
||||||
"k" (fn [&] (set *compile-only* true) 1)
|
"k" (fn [&] (set *compile-only* true) (set *exit-on-error* false) 1)
|
||||||
"n" (fn [&] (set *colorize* false) 1)
|
"n" (fn [&] (set *colorize* false) 1)
|
||||||
"m" (fn [i &] (set module/*syspath* (get process/args (+ i 1))) 2)
|
"m" (fn [i &] (set module/*syspath* (get process/args (+ i 1))) 2)
|
||||||
"c" (fn [i &]
|
"c" (fn [i &]
|
||||||
|
Loading…
Reference in New Issue
Block a user