From b4f5e5bc009a7a315c25c0f61fc7fb782f764a4f Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 6 Jul 2020 21:24:49 -0500 Subject: [PATCH] Update docs for -l option. --- janet.1 | 4 ++-- src/boot/boot.janet | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/janet.1 b/janet.1 index 4f39eb75..21b38e46 100644 --- a/janet.1 +++ b/janet.1 @@ -194,8 +194,8 @@ 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 \-l\ path -Load a Janet file before running a script or repl. Multiple files can be loaded +.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 or repl. diff --git a/src/boot/boot.janet b/src/boot/boot.janet index ec4e8e29..1aad1f1c 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -2763,7 +2763,7 @@ -m syspath : Set system path for loading global modules -c source output : Compile janet source code into an image -n : Disable ANSI color output in the repl - -l path : Execute code in a file before running the main script + -l lib : Import a module before processing more arguments -- : Stop handling options`) (os/exit 0) 1)