Skip to content

command line

Bill Hails edited this page Oct 18, 2025 · 1 revision

Command Line Arguments

During development the executable is built as bin/fn. running that command with a -h or --help argument produces the following output.

./bin/fn - debug build
usage: ./bin/fn <options> [---] [<filename> [<arguments> ...]]
options:
    -h
    --help                   This help.
    --assertions-accumulate  Don't exit on the first assertion failure.
    --binary-in=<file>       Read byte code from file.
    --binary-out=<file>      Write byte code to file.
    --dump-anf               Display the generated ANF.
    --dump-ast               Display the parsed AST before lambda conversion.
    --dump-bytecode          Dump the generated bytecode.
    --dump-inline            Display the intermediate code after inlining.
    -l
    --dump-lambda            Display all the intermediate code.
    -l<function>
    --dump-lambda=<function> Display the intermediate code for the function.
    -m <function>
    --dump-tpmc=<function>   Dump a mermaid graph of the TPMC state table.
    -e<snippet>
    --exec=<snippet>         Execute the snippet of code directly
    -i<dir>
    --include=<dir>          Add dir to the list of directories to be searched.
    --report                 Report statistics.

Most of the options are only relevant during development, but the --binary-in, --binary-out, --exec and --include are of general utility.

Clone this wiki locally