The standard Tcl shell program tclsh accepts a command line of the form:
tclsh [fileName
] [arg
...]
where filename
is an optional file from
which to read Tcl commands. With no filename
argument, tclsh runs interactively using standard
input and output.
The filename and any additional arguments are stored in the Tcl
variables argc
, argv
, and
argvO
(see the section "Special Variables“).