add new command-line arguments: -p, -P, -Q

svn: r5557

original commit: 2007843ba4adc1b0a3cf6c53a22f3ae69b1049b9
This commit is contained in:
Matthew Flatt 2007-02-06 05:14:34 +00:00
parent 878ce86444
commit 946b4ba5c4
2 changed files with 61 additions and 31 deletions

View File

@ -1,5 +1,5 @@
\" dummy line \" dummy line
.TH MRED 1 "May 2007" .TH MRED 1 "January 2007"
.UC 4 .UC 4
.SH NAME .SH NAME
mred \- The PLT Graphical Scheme implementation mred \- The PLT Graphical Scheme implementation
@ -138,6 +138,26 @@ Same as
.I coll\|\c .I coll\|\c
"))'. "))'.
.TP .TP
.BI \-p \ file \ user \ package
Same as
.BR -e \ '(require\ (planet\ "\|\c
.I file\|\c
\|" "\|\c
.I user\|\c
\|" "\|\c
.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 .B \-r\fR,\fP \-\^\-script
Script mode: use as last flag for scripts. Script mode: use as last flag for scripts.
Same as Same as
@ -218,6 +238,10 @@ Skips defining `argv' and `program'.
.SH LANGUAGE SETTING OPTIONS .SH LANGUAGE SETTING OPTIONS
.TP .TP
.B \-Q\fR,\fP \-\^\-prim
Assume primitive bindings at top level by initializing the environment with
`(require mzscheme)'.
.TP
.B \-g\fR,\fP \-\^\-case-sens .B \-g\fR,\fP \-\^\-case-sens
Identifiers and symbols are initially case-sensitive (the default). Identifiers and symbols are initially case-sensitive (the default).
.TP .TP
@ -248,11 +272,8 @@ Like -v, also suppresses (yield 'wait).
.TP .TP
.B \-h\fR,\fP \-\^\-help .B \-h\fR,\fP \-\^\-help
Shows help for command-line arguments. Shows help for command-line arguments.
.TP
.BI \-R file\fR,\ \fP \-\^\-restore \ file
Restores an image; must be the only switch. (Special versions only)
.SH OPTION CONVENTIONS .SH COMMAND-LINE CONVENTIONS
Multiple single-letter switches can be collapsed, with arguments placed Multiple single-letter switches can be collapsed, with arguments placed
after the collapsed switches; the first collapsed switch cannot be after the collapsed switches; the first collapsed switch cannot be
@ -267,17 +288,11 @@ is the same as
.B -m -e .B -m -e
.IR expr . .IR expr .
.PP .PP
Extra arguments following the last switch are put into the Scheme global Extra arguments following the last option are put into the Scheme global
variable `argv' as a vector of strings. The name used to start variable `argv' as a vector of strings. The name used to start
.I MrEd .I MrEd
is put into the global variable `program' as a string. is put into the global variable `program' as a string.
.PP .PP
Extra arguments after a
.B --restore
file are returned as a vector of
strings to the continuation of the `write-image-to-file' call that created
the image.
.PP
Expressions/files are evaluated/loaded in order as provided, including Expressions/files are evaluated/loaded in order as provided, including
calls to calls to
.B main .B main
@ -293,7 +308,7 @@ expressions/files are evaluated/loaded, unless the
.B -x .B -x
or or
.B --no-lib-path .B --no-lib-path
switch is used. option is used.
.SH EXECUTABLE NAME .SH EXECUTABLE NAME
If the executable name has the form scheme-\|\c If the executable name has the form scheme-\|\c
@ -315,13 +330,13 @@ expressions/files are evaluated/loaded, unless the
.B -q .B -q
or or
.B --no-init-file .B --no-init-file
switch is used. option is used.
.PP .PP
Unless the Unless the
.B -U .B -U
or or
.B --no-user-path .B --no-user-path
switch is provided, the library collections search option is provided, the library collections search
path is read from the PLTCOLLECTS environment variable path is read from the PLTCOLLECTS environment variable
(as a colon-separated list of paths). Where the empty path (as a colon-separated list of paths). Where the empty path
appears in PLTCOLLECTS, it is replaced with the default appears in PLTCOLLECTS, it is replaced with the default

View File

@ -1,5 +1,5 @@
.\" dummy line .\" dummy line
.TH MZSCHEME 1 "May 2007" .TH MZSCHEME 1 "January 2007"
.UC 4 .UC 4
.SH NAME .SH NAME
mzscheme \- The PLT Scheme implementation mzscheme \- The PLT Scheme implementation
@ -100,6 +100,26 @@ Same as
.I coll\|\c .I coll\|\c
"))'. "))'.
.TP .TP
.BI \-p \ file \ user \ package
Same as
.BR -e \ '(require\ (planet\ "\|\c
.I file\|\c
\|" "\|\c
.I user\|\c
\|" "\|\c
.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 .B \-r\fR,\fP \-\^\-script
Script mode: use as last flag for scripts. Script mode: use as last flag for scripts.
Same as Same as
@ -170,6 +190,10 @@ Skips defining `argv' and `program'.
.SH LANGUAGE SETTING OPTIONS .SH LANGUAGE SETTING OPTIONS
.TP .TP
.B \-Q\fR,\fP \-\^\-prim
Assume primitive bindings at top level by initializing the environment with
`(require mzscheme)'.
.TP
.B \-g\fR,\fP \-\^\-case-sens .B \-g\fR,\fP \-\^\-case-sens
Identifiers and symbols are initially case-sensitive (the default). Identifiers and symbols are initially case-sensitive (the default).
.TP .TP
@ -197,14 +221,11 @@ Suppresses the read-eval-print loop.
.TP .TP
.B \-h\fR,\fP \-\^\-help .B \-h\fR,\fP \-\^\-help
Shows help for command-line arguments. Shows help for command-line arguments.
.TP
.BI \-R file\fR,\ \fP \-\^\-restore \ file
Restores an image; must be the only switch. (Special versions only)
.SH OPTION CONVENTIONS .SH COMMAND-LINE CONVENTIONS
Multiple single-letter switches can be collapsed, with arguments placed Multiple single-letter switches can be collapsed, with arguments placed
after the collapsed switches; the first collapsed switch cannot be after the collapsed swicthes; the first collapsed switch cannot be
.BR -- . .BR -- .
E.g.: E.g.:
.B -vfme .B -vfme
@ -216,17 +237,11 @@ is the same as
.B -m -e .B -m -e
.IR expr . .IR expr .
.PP .PP
Extra arguments following the last switch are put into the Scheme global Extra arguments following the last option are put into the Scheme global
variable `argv' as a vector of strings. The name used to start variable `argv' as a vector of strings. The name used to start
.I MzScheme .I MzScheme
is put into the global variable `program' as a string. is put into the global variable `program' as a string.
.PP .PP
Extra arguments after a
.B --restore
file are returned as a vector of
strings to the continuation of the `write-image-to-file' call that created
the image.
.PP
Expressions/files are evaluated/loaded in order as provided, including Expressions/files are evaluated/loaded in order as provided, including
calls to calls to
.B main .B main
@ -242,7 +257,7 @@ expressions/files are evaluated/loaded, unless the
.B -x .B -x
or or
.B --no-lib-path .B --no-lib-path
switch is used. option is used.
.SH EXECUTABLE NAME .SH EXECUTABLE NAME
If the executable name has the form scheme-\|\c If the executable name has the form scheme-\|\c
@ -264,13 +279,13 @@ expressions/files are evaluated/loaded, unless the
.B -q .B -q
or or
.B --no-init-file .B --no-init-file
switch is used. option is used.
.PP .PP
Unless the Unless the
.B -U .B -U
or or
.B --no-user-path .B --no-user-path
switch is provided, the library collections search option is provided, the library collections search
path is read from the PLTCOLLECTS environment variable path is read from the PLTCOLLECTS environment variable
(as a colon-separated list of paths). Where the empty path (as a colon-separated list of paths). Where the empty path
appears in PLTCOLLECTS, it is replaced with the default appears in PLTCOLLECTS, it is replaced with the default