zsh-workers
 help / color / mirror / code / Atom feed
* tiny zparseopts doc fix
@ 2017-08-07  3:14 Anthony Heading
  0 siblings, 0 replies; only message in thread
From: Anthony Heading @ 2017-08-07  3:14 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-07  3:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07  3:14 tiny zparseopts doc fix Anthony Heading

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).