aboutsummaryrefslogtreecommitdiffhomepage
path: root/janet.1
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2019-02-18 15:31:15 -0500
committerCalvin Rose <calsrose@gmail.com>2019-02-18 15:31:15 -0500
commit8d9a88e7594c319382939afb765fd75d29f15ac3 (patch)
treefd0883dd8f5a5952131ea2ecd5fc3ff1643aabce /janet.1
parentUpdate man page. (diff)
Add JANET_PATH back in.
Diffstat (limited to 'janet.1')
-rw-r--r--janet.111
1 files changed, 10 insertions, 1 deletions
diff --git a/janet.1 b/janet.1
index 4d052ca6..f29dadab 100644
--- a/janet.1
+++ b/janet.1
@@ -67,7 +67,7 @@ Quiet output. Don't print a repl prompt or expression results to stdout.
.BR \-m\ syspath
Set the variable module/*syspath* to the string syspath so that Janet will load system modules
from a directory different than the default. The default is set when Janet is built, and defaults to
-/usr/local/lib/janet on Linux/Posix, and C:/Janet/Library on Windows.
+/usr/local/lib/janet on Linux/Posix, and C:/Janet/Library on Windows. This option supersedes JANET_PATH.
.TP
.BR \-c\ source\ output
@@ -86,5 +86,14 @@ or repl.
Stop parsing command line arguments. All arguments after this one will be considered file names
and then arguments to the script.
+.SH ENVIRONMENT
+
+.B JANET_PATH
+.RS
+The location to look for Janet libraries. This is the only environment variable Janet needs to
+find native and source code modules. If no JANET_PATH is set, Janet will look in
+the default location set at compile time.
+.RE
+
.SH AUTHOR
Written by Calvin Rose <calsrose@gmail.com>