Zero or more options can be passed in, followed by an optional script file name. If the script file is specified, it will be run on startup. Any arguments after the script file are stored in the following variable, with no further processing by Factor itself:
Instead of running a script, it is also possible to run a vocabulary; this invokes the vocabulary's MAIN: word:
factor [system switches...] -run=<vocab name>
If no script file or -run= switch is specified, Factor will start The listener or UI developer tools, depending on the operating system.
As stated above, arguments in the first part of the command line, before the optional script name, are interpreted by to the Factor system. These arguments all start with a dash (-).
Switches can take one of the following three forms: