Skip to content

Command Line Usage

Michael Wang edited this page Sep 24, 2021 · 8 revisions

The CLI interface is fairly simple to use. Most functionality comprises of command line arguments. Command line arguments in supperforth are parsed from left to right. The first expected flag is a functionality flag, followed by several operand flags depending on the functionality flag, and so forth(you can perform more than one operation in a single command).

Functionality Flags

There are four principle functionality flags.

Functionality Flag Expects Source Expects Output
Help -help No No
Information -info No no
Compile -c Yes Yes
Run -r Yes No
Compile and Run -cr Yes No
Inspect Dump -d Yes No

Argument Flags

To specify an source, use the -s flag followed by a source specifier(ie filepath). To specify an output, use the -o flag followed by an output specifier(ie filepath).

Clone this wiki locally