aboutsummaryrefslogtreecommitdiffhomepage
path: root/janet.1
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2021-09-19 19:45:21 -0500
committerCalvin Rose <calsrose@gmail.com>2021-09-19 19:47:57 -0500
commit033c6f1fdba7a8fd17d3a05c18d42d50f079e475 (patch)
tree2cd1cb03c4d660e74e0240a0ed3834caf12e8dcb /janet.1
parentRemove thread module. (diff)
Add -i flag to run .jimage files as scripts.
Diffstat (limited to 'janet.1')
-rw-r--r--janet.17
1 files changed, 6 insertions, 1 deletions
diff --git a/janet.1 b/janet.1
index bd4ee7f3..2bb8560a 100644
--- a/janet.1
+++ b/janet.1
@@ -3,7 +3,7 @@
janet \- run the Janet language abstract machine
.SH SYNOPSIS
.B janet
-[\fB\-hvsrpnqk\fR]
+[\fB\-hvsrpnqik\fR]
[\fB\-e\fR \fISOURCE\fR]
[\fB\-E\fR \fISOURCE ...ARGUMENTS\fR]
[\fB\-l\fR \fIMODULE\fR]
@@ -214,6 +214,11 @@ Source should be a path to the Janet module to compile, and output should be the
resulting image. Output should usually end with the .jimage extension.
.TP
+.BR \-i
+When this flag is passed, a script passed to the interpreter will be treated as a janet image file
+rather than a janet source file.
+
+.TP
.BR \-l\ lib
Import a Janet module before running a script or repl. Multiple files can be loaded
in this manner, and exports from each file will be made available to the script