PREV UP NEXT SCM

3.2: Options

The options are processed in the order specified on the command line.

Command Option: -a kb
specifies that scm should allocate an initial heapsize of kb kilobytes. This option, if present, must be the first on the command line. If not specified, the default is INIT_HEAP_SIZE in source file `setjump.h' which the distribution sets at 25000*sizeof(cell).
Command Option: -no-init-file
Command Option: --no-init-file
Inhibits the loading of `ScmInit.scm' as described above.
Command Option: -e expression
Command Option: -c expression
specifies that the scheme expression expression is to be evaluated. These options are inspired by perl and sh respectively. On Amiga systems the entire option and argument need to be enclosed in quotes. For instance `"-e(newline)"'.
Command Option: -r feature
requires feature. This will load a file from [SLIB] if that feature is not already supported. If feature is 2, 3, 4, or 5 scm will require the features neccessary to support [R2RS], [R3RS], [R4RS], or proposed [R5RS], respectively.
Command Option: -l filename
Command Option: -f filename
loads filename. Scm will load the first (unoptioned) file named on the command line if no -c, -e, -f, -l, or -s option preceeds it.
Command Option: -p level
sets the prolixity (verboseness) to level. This is the same as the scm command (verobse level).
Command Option: -v
(verbose mode) specifies that scm will print prompts, evaluation times, notice of loading files, and garbage collection statistics. This is the same as -p3.
Command Option: -q
(quiet mode) specifies that scm will print no extra information. This is the same as -p0.
Command Option: -m
specifies that subsequent loads, evaluations, and user interactions will be with [R4RS] macro capability. To use a specific [R4RS] macro implementation from [SLIB] (instead of [SLIB]'s default) put -r macropackage before -m on the command line.
Command Option: -u
specifies that subsequent loads, evaluations, and user interactions will be without [R4RS] macro capability. [R4RS] macro capability can be restored by a subsequent -m on the command line or from Scheme code.
Command Option: -i
specifies that scm should run interactively. That means that scm will not terminate until the (quit) or (exit) command is given, even if there are errors. It also sets the prolixity level to 2 if it is less than 2. This will print prompts, evaluation times, and notice of loading files. The prolixity level can be set by subsequent options. If scm is started from a tty, it will assume that it should be interactive unless given a subsequent -b option.
Command Option: -b
specifies that scm should run non-interactively. That means that scm will terminate after processing the command line or if there are errors.
Command Option: -s
specifies, by analogy with sh, that further options are to be treated as program aguments.
Command Option: -
Command Option: --
specifies that there are no more options on the command line.
Command Option: -d filename
loads SLIB database-utilities and opens filename as a database.
Command Option: -o filename
saves the current SCM session as the executable program `filename'. This option works only in SCM builds supporting dump (see Dump).

If options appear on the command line after `-o filename', then the saved session will continue with processing those options when it is invoked. Otherwise the (new) command line is processed as usual when the saved image is invoked.

Command Option: --help
prints usage information and URL; then exit.
Command Option: --version
prints version information and exit.