diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-01-25 17:45:17 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-01-25 17:45:17 (GMT) |
commit | d78ebb8e014475bdb1c47d4b695856f79925e755 (patch) | |
tree | d6ac371db01bf12d8b1e08214f3eef292617549f /doc/prefix.n | |
parent | 104d50836d96335baa9b788de5e85dc2359dc323 (diff) | |
download | tcl-d78ebb8e014475bdb1c47d4b695856f79925e755.zip tcl-d78ebb8e014475bdb1c47d4b695856f79925e755.tar.gz tcl-d78ebb8e014475bdb1c47d4b695856f79925e755.tar.bz2 |
Another round of small fixes, especially spelling errors...
Diffstat (limited to 'doc/prefix.n')
-rw-r--r-- | doc/prefix.n | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/prefix.n b/doc/prefix.n index abd337a..a2180e5 100644 --- a/doc/prefix.n +++ b/doc/prefix.n @@ -44,15 +44,18 @@ before use with this subcommand, so that the list of matches presented in the error message also becomes sorted, though this is not strictly necessary for the operation of this subcommand itself.) .RS +.\" OPTION: -exact .TP -\fB\-exact\fR\0 +\fB\-exact\fR . Accept only exact matches. +.\" OPTION: -message .TP \fB\-message\0\fIstring\fR . Use \fIstring\fR in the error message at a mismatch. Default is .QW option . +.\" OPTION: -error .TP \fB\-error\0\fIoptions\fR . @@ -67,7 +70,7 @@ is used, an error would be generated as: .RS .PP .CS -return \-errorcode MyError \-level 1 \-code error \e +return -errorcode MyError -level 1 -code error \e "ambiguous option ..." .CE .RE @@ -82,9 +85,9 @@ namespace import ::tcl::prefix \fI\(-> apa\fR \fBprefix match\fR {apa bepa cepa} a \fI\(-> apa\fR -\fBprefix match\fR \-exact {apa bepa cepa} a +\fBprefix match\fR -exact {apa bepa cepa} a \fI\(-> bad option "a": must be apa, bepa, or cepa\fR -\fBprefix match\fR \-message "switch" {apa ada bepa cepa} a +\fBprefix match\fR -message "switch" {apa ada bepa cepa} a \fI\(-> ambiguous switch "a": must be apa, ada, bepa, or cepa\fR \fBprefix longest\fR {fblocked fconfigure fcopy file fileevent flush} fc \fI\(-> fco\fR @@ -95,9 +98,9 @@ namespace import ::tcl::prefix Simplifying option matching: .PP .CS -array set opts {\-apa 1 \-bepa "" \-cepa 0} +array set opts {-apa 1 -bepa "" -cepa 0} foreach {arg val} $args { - set opts([\fBprefix match\fR {\-apa \-bepa \-cepa} $arg]) $val + set opts([\fBprefix match\fR {-apa -bepa -cepa} $arg]) $val } .CE .PP |