MzScheme's -e command-line flag prints results

svn: r7860

original commit: fd8586e11373d5c46bd7ec058960a0d4c9595e60
This commit is contained in:
Matthew Flatt 2007-11-29 14:32:15 +00:00
parent 8f905ae10a
commit 7d2da92cbe

View File

@ -1,5 +1,5 @@
.\" dummy line .\" dummy line
.TH MZSCHEME 1 "February 2007" .TH MZSCHEME 1 "November 2007"
.UC 4 .UC 4
.SH NAME .SH NAME
mzscheme \- The PLT Scheme implementation mzscheme \- The PLT Scheme implementation
@ -32,72 +32,24 @@ applications.
.SH STARTUP FILE AND EXPRESSION OPTIONS .SH STARTUP FILE AND EXPRESSION OPTIONS
.TP .TP
.BI \-e \ expr\fR,\ \fP \-\^\-eval \ expr .BI \-e \ exprs\fR,\ \fP \-\^\-eval \ exprs
Evaluates Evaluates
.I expr .I exprs
after and prints each result.
.I MzScheme
starts.
.TP .TP
.BI \-f \ file\fR,\ \fP \-\^\-load \ file .BI \-f \ file\fR,\ \fP \-\^\-load \ file
Loads Loads
.I file .I file
after and prints the last result from the file.
.I MzScheme
starts.
.TP
.BI \-d \ file\fR,\ \fP \-\^\-load-cd \ file
Load/cds
.I file
after
.I MzScheme
starts.
.TP .TP
.BI \-t \ file\fR,\ \fP \-\^\-require \ file .BI \-t \ file\fR,\ \fP \-\^\-require \ file
Requires Requires
.I file .I file
after
.I MzScheme
starts.
.TP .TP
.B \-F\fR,\fP \-\^\-Load .BI \-l \ path\fR,\ \fP \-\^\-lib \ path
.br
Loads all remaining arguments after
.I MzScheme
starts.
.TP
.B \-D\fR,\fP \-\^\-Load-cd
.br
Load/cds all remaining arguments after
.I MzScheme
starts.
.TP
.B \-T\fR,\fP \-\^\-Require
.br
Requires all remaining arguments after
.I MzScheme
starts.
.TP
.BI \-l \ file\fR,\ \fP \-\^\-mzlib \ file
Same as Same as
.BR -e \ '(require\ (lib\ "\|\c .BR -e \ '(require\ (lib\ "\|\c
.I file\|\c .I path\|\c
"))'.
.TP
.BI \-L \ file \ coll
Same as
.BR -e \ '(require\ (lib\ "\|\c
.I file\|\c
" "\|\c
.I coll\|\c
"))'.
.TP
.BI \-M \ coll
Same as
.BR -e \ '(require\ (lib\ "\|\c
.I coll\|\c
\|.ss" "\|\c
.I coll\|\c
"))'. "))'.
.TP .TP
.BI \-p \ file \ user \ package .BI \-p \ file \ user \ package
@ -110,35 +62,14 @@ Same as
.I package\|\c .I package\|\c
"))'. "))'.
.TP .TP
.BI \-P \ name \ user
Same as
.BR -e \ '(require\ (planet\ "\|\c
.I name\|\c
\|.ss" "\|\c
.I user\|\c
\|" "\|\c
.I name\|\c
\|.plt"))'.
.TP .TP
.B \-r\fR,\fP \-\^\-script .B \-r\fR,\fP \-\^\-script
Script mode: use as last flag for scripts. Script mode; same as
Same as .BR -f- .
.BR -fmv- .
.TP
.B \-i\fR,\fP \-\^\-script-cd
Like -r, but also sets the directory.
Same as
.BR -dmv- .
.TP .TP
.B \-u\fR,\fP \-\^\-require-script .B \-u\fR,\fP \-\^\-require-script
Like -r, but requires a module. Module script mode; same as
Same as .BR -t- .
.BR -tmv- .
.TP
.B \-w\fR,\fP \-\^\-awk
Same as
.B -l
.BR awk.ss .
.TP .TP
.BI \-k \ n \ m\ .BI \-k \ n \ m\
Load executable-embedded code from file offset Load executable-embedded code from file offset
@ -146,10 +77,8 @@ Load executable-embedded code from file offset
to to
.IR m . .IR m .
.TP .TP
.B \-C\fR,\fP \-\^\-main .B \-m\fR,\fP \-\^\-main
Like -r, then calls `main' with a list of argument strings. The first Calls `main' with command-line arguments.
string in the list is the name of the loaded file, and
the rest of the list contains leftover command-line arguments.
.PP .PP
.SH INITIALIZATION OPTIONS .SH INITIALIZATION OPTIONS