7.4.3 CSS Startup options

The following startup arguments are interpreted by CSS:

[-f|-file] <file>
Compile and execute the given file upon startup. The default is to then exit after execution, but this can be overridden by the -i flag.
[-e|-exec] <code>
Compile and execute the given code upon startup. The code is passed as a single string argument, and should contain CSS code separated by semicolons. The default is to then exit after execution, but this can be overridden by the -i flag.
[-i|-interactive]
If using -f or -e, CSS will go into interactive (prompt) mode after startup execution.
-v[<number>]
Run CSS with the initial debug level set to given number (default 1)
[-b|-bp] <line>
Set an initial breakpoint at the given line of code (only if using -f).
[-gui]
Enable the graphical-user-interface to CSS class objects. This is not activated by default, since most uses of CSS don't involve the gui.

Any other arguments can be accessed by user script programs by the global variables argv (an array of strings) and argc (an int).

Note that it is possible to make a self-executing css program by putting the following on the very first line of the file:

#!/usr/local/pdp++/bin/SUN4/css -f 

In addition to these arguments, CSS looks for a file named `.cssinitrc' in the user's home directory, which contains CSS code that is run when CSS is started. This is useful for setting various command aliases, and defining commonly-used extern functions. An example `.cssinitrc' file is located in `config/std.cssinitrc'.