Base: Add missing js(1) command line options

This commit is contained in:
Idan Horowitz 2021-11-24 20:00:31 +02:00 committed by Linus Groh
parent de69f5dbf4
commit c7d2df45b9
Notes: sideshowbarker 2024-07-18 00:43:34 +09:00

View file

@ -22,6 +22,10 @@ Run `help()` in REPL mode to see its available built-in functions.
## Options
* `-A`, `--dump-ast`: Dump the Abstract Syntax Tree after parsing the program.
* `-d`, `--dump-bytecode`: Dump the bytecode
* `-b`, `--run-bytecode`: Run the bytecode
* `-p`, `--optimize-bytecode`: Optimize the bytecode
* `-m`, `--as-module`: Treat as module
* `-l`, `--print-last-result`: Print the result of the last statement executed.
* `-g`, `--gc-on-every-allocation`: Run garbage collection on every allocation.
* `-s`, `--no-syntax-highlight`: Disable live syntax highlighting in the REPL