From 7d2da92cbe762f27403986dd2f039c54549b4cf6 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 29 Nov 2007 14:32:15 +0000 Subject: [PATCH] MzScheme's -e command-line flag prints results svn: r7860 original commit: fd8586e11373d5c46bd7ec058960a0d4c9595e60 --- man/man1/mzscheme.1 | 97 ++++++--------------------------------------- 1 file changed, 13 insertions(+), 84 deletions(-) diff --git a/man/man1/mzscheme.1 b/man/man1/mzscheme.1 index d999c6df..80ee5d3b 100644 --- a/man/man1/mzscheme.1 +++ b/man/man1/mzscheme.1 @@ -1,5 +1,5 @@ .\" dummy line -.TH MZSCHEME 1 "February 2007" +.TH MZSCHEME 1 "November 2007" .UC 4 .SH NAME mzscheme \- The PLT Scheme implementation @@ -32,72 +32,24 @@ applications. .SH STARTUP FILE AND EXPRESSION OPTIONS .TP -.BI \-e \ expr\fR,\ \fP \-\^\-eval \ expr +.BI \-e \ exprs\fR,\ \fP \-\^\-eval \ exprs Evaluates -.I expr -after -.I MzScheme -starts. +.I exprs +and prints each result. .TP .BI \-f \ file\fR,\ \fP \-\^\-load \ file Loads .I file -after -.I MzScheme -starts. -.TP -.BI \-d \ file\fR,\ \fP \-\^\-load-cd \ file -Load/cds -.I file -after -.I MzScheme -starts. +and prints the last result from the file. .TP .BI \-t \ file\fR,\ \fP \-\^\-require \ file Requires .I file -after -.I MzScheme -starts. .TP -.B \-F\fR,\fP \-\^\-Load -.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 +.BI \-l \ path\fR,\ \fP \-\^\-lib \ path Same as .BR -e \ '(require\ (lib\ "\|\c -.I file\|\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 +.I path\|\c "))'. .TP .BI \-p \ file \ user \ package @@ -110,35 +62,14 @@ Same as .I package\|\c "))'. .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 .B \-r\fR,\fP \-\^\-script -Script mode: use as last flag for scripts. -Same as -.BR -fmv- . -.TP -.B \-i\fR,\fP \-\^\-script-cd -Like -r, but also sets the directory. -Same as -.BR -dmv- . +Script mode; same as +.BR -f- . .TP .B \-u\fR,\fP \-\^\-require-script -Like -r, but requires a module. -Same as -.BR -tmv- . -.TP -.B \-w\fR,\fP \-\^\-awk -Same as -.B -l -.BR awk.ss . +Module script mode; same as +.BR -t- . .TP .BI \-k \ n \ m\ Load executable-embedded code from file offset @@ -146,10 +77,8 @@ Load executable-embedded code from file offset to .IR m . .TP -.B \-C\fR,\fP \-\^\-main -Like -r, then calls `main' with a list of argument strings. The first -string in the list is the name of the loaded file, and -the rest of the list contains leftover command-line arguments. +.B \-m\fR,\fP \-\^\-main +Calls `main' with command-line arguments. .PP .SH INITIALIZATION OPTIONS