- -c file ...
- Compile files into an `intermediate code file'. See section
2.10.
- -o output
- Used in combination with -c or -b to
determine output file for compilation.
- -O
- Optimised compilation. See current_prolog_flag/2
flag
optimise for
details.
- -s file
- Use file as a script file. The script file is loaded after
the initialisation file specified with the -f file
option. Unlike -f file, using -s
does not stop Prolog from loading the personal initialisation file.
- -f file
- Use file as initialisation file instead of the default
.plrc (Unix) or pl.ini (Windows). `-f none'
stops SWI-Prolog from searching for a startup file. This option can be
used as an alternative to -s file that stops
Prolog from loading the personal initialisation file. See also
section 2.2.
- -F script
- Select a startup script from the SWI-Prolog home directory. The script
file is named
<script>.rc. The default
script name is deduced from the executable, taking the
leading alphanumerical characters (letters, digits and underscore) from
the program name. -F none stops looking for
a script. Intended for simple management of slightly different versions.
One could, for example, write a script iso.rc and then
select ISO compatibility mode using pl -F iso or make a
link from iso-pl to
pl.
- -x bootfile
- Boot from bootfile instead of the system's default boot file.
A boot file is a file resulting from a Prolog compilation using the
-b or -c option or a program saved
using
qsave_program/[1,2].
- -p alias=path1[:path2 ... ]
- Define a path alias for file_search_path. alias is the name
of the alias, and arg path1 ... is a list of values for the alias. On
Windows the list separator is
;. On other
systems it is :. A value is either a term of
the form alias(value) or pathname. The computed aliases are added to file_search_path/2
using asserta/1,
so they precede predefined values for the alias. See file_search_path/2
for details on using this file location mechanism.