Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

tiny zparseopts doc fix



An embarrassingly trivial patch, and even then I might not have got the
yodl syntax right.  But it would have saved me reading the source code,
as "--" seems not to work here, and without it option specs like
"-all=all" get eaten by the array flag.

Rgds

Anthony

diff --git a/Doc/Zsh/mod_zutil.yo b/Doc/Zsh/mod_zutil.yo
index dc17161f1..8331eabb7 100644
--- a/Doc/Zsh/mod_zutil.yo
+++ b/Doc/Zsh/mod_zutil.yo
@@ -179,7 +179,7 @@ item(tt(zregexparse))(
 This implements some internals of the tt(_regex_arguments) function.
 )
 findex(zparseopts)
-item(tt(zparseopts) [ tt(-D) tt(-K) tt(-M) tt(-E) ] [ tt(-a) var(array)
] [ tt(-A) var(assoc) ] var(spec) ...)(
+item(tt(zparseopts) [ tt(-D) tt(-K) tt(-M) tt(-E) ] [ tt(-a) var(array)
] [ tt(-A) var(assoc) ] [ tt(-) ] var(spec) ...)(
 This builtin simplifies the parsing of options in positional
 parameters,
 i.e. the set of arguments given by tt($*).  Each var(spec) describes
 one
 option and must be of the form `var(opt)[tt(=)var(array)]'.  If an
 option



Messages sorted by: Reverse Date, Date, Thread, Author