diff options
| author | 2021-09-19 19:45:21 -0500 | |
|---|---|---|
| committer | 2021-09-19 19:47:57 -0500 | |
| commit | 033c6f1fdba7a8fd17d3a05c18d42d50f079e475 (patch) | |
| tree | 2cd1cb03c4d660e74e0240a0ed3834caf12e8dcb /janet.1 | |
| parent | Remove thread module. (diff) | |
Add -i flag to run .jimage files as scripts.
Diffstat (limited to 'janet.1')
| -rw-r--r-- | janet.1 | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
