aboutsummaryrefslogtreecommitdiffhomepage
path: root/janet.1
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2021-08-21 13:12:19 -0500
committerCalvin Rose <calsrose@gmail.com>2021-08-21 13:16:41 -0500
commit846c9e5e129ecc77015da456cdcce880f437d639 (patch)
tree608c761f2625bfaea295666750b1efc49fd27fc5 /janet.1
parentAddress #765. Make `assert` into a macro. (diff)
Fix #759 - Add -E flag for one-liners.
Use the `short-fn` DSL here for argument passing.
Diffstat (limited to 'janet.1')
-rw-r--r--janet.16
1 files changed, 6 insertions, 0 deletions
diff --git a/janet.1 b/janet.1
index 448a8ae5..bd4ee7f3 100644
--- a/janet.1
+++ b/janet.1
@@ -5,6 +5,7 @@ janet \- run the Janet language abstract machine
.B janet
[\fB\-hvsrpnqk\fR]
[\fB\-e\fR \fISOURCE\fR]
+[\fB\-E\fR \fISOURCE ...ARGUMENTS\fR]
[\fB\-l\fR \fIMODULE\fR]
[\fB\-m\fR \fIPATH\fR]
[\fB\-c\fR \fIMODULE JIMAGE\fR]
@@ -163,6 +164,11 @@ Execute a string of Janet source. Source code is executed in the order it is enc
arguments are executed before later ones.
.TP
+.BR \-E\ code arguments
+Execute a single Janet expression as a Janet short-fn, passing the remaining command line arguments to the expression. This allows
+more concise one-liners with command line arguments.
+
+.TP
.BR \-d
Enable debug mode. On all terminating signals as well the debug signal, this will
cause the debugger to come up in the REPL. Same as calling (setdyn :debug true) in a