diff options
| author | 2021-08-21 13:12:19 -0500 | |
|---|---|---|
| committer | 2021-08-21 13:16:41 -0500 | |
| commit | 846c9e5e129ecc77015da456cdcce880f437d639 (patch) | |
| tree | 608c761f2625bfaea295666750b1efc49fd27fc5 /janet.1 | |
| parent | Address #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.1 | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
