-
-C
,--client
Starts in REPL client mode. Connects to the REPL address specified by the--repl
option. Uses127.0.0.1:9999
if no address is specified. -
-c <file name>
,--config <file name>
The config file to run. Usesjwno-config.janet
in the same directory asjwno.exe
by default. -
-e <expressions>
,--eval <expressions>
Evaluates some Janet code through a REPL connection, then exit. Only shows the output from the REPL when there's an error. To see all REPL output, set--log-level
todebug
. -
-x <command>
,--execute <command>
Executes a command through a REPL connection, then exit. The colon (:
) in front of a command name can be omitted, but all arguments must be in correct Janet syntax. For example, in this commandjwno.exe -x ":move-window :left"
, the first colon can be omitted, but the second colon is needed for Jwno to parse the keyword argument correctly. -
-E
,--export-all
After processing the--eval
option to evaluate Janet code, exports all symbols in the REPL environment. This option essentially "saves" the environment modified by the evaluated code, and makes it available to other REPL connections. -
-h
,--help
Shows a help message. -
--log-file <file name>
Specifies a log file to write to. No log file will be generated if this option is omitted. -
--log-level <level>
The log level. Can bequiet
,error
,warning
,info
ordebug
. Default:quiet
. -
-m <path name>
,--mod-path <path name>
A custom path to load modules from. Can be specified multiple times. Uses the directory where the config file resides by default. -
--no-console
Supresses console output, when--log-level
is notquiet
. -
-r <ip:port>
,--repl <ip:port>
Specifies the address the REPL should be listening on. The REPL will not be started if this option is omitted. -
-v
,--version
Shows version info then exit.
All other command line arguments that do not begin with a hyphen -
will be interpreted as config file names, but they can be overridden by the -c
or --config
option.