Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
tiny zparseopts doc fix
- X-seq: zsh-workers 41500
- From: Anthony Heading <anthony@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: tiny zparseopts doc fix
- Date: Sun, 06 Aug 2017 23:14:50 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajrh.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=/a+XCaKnMddleGqSv0wQUPqEsNAXGp2QYEbHcnyflNE=; b=rQuLQ xT+j6mVVVDU8oBCGnuMho8S4ECB53v65nMR3VPwlhroTRkXyvr6r23skeTYXdoHc jZmlY1dsJSFsgFEcGOuGXEMGlOyONvv/N+6VE/lSd/2bKQ0IqF6i5Rxc0UKFKzoA JcTfpjvJr3dnw8hiIPX5OrRAPo6sPq152MoIx8=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=/a+XCaKnMddleGqSv0wQUPqEsNAXG p2QYEbHcnyflNE=; b=hsClSaSL5kXY/uNYgwNu6a/kXOexubyMR0p2X0Mf4qvCv mofHWrJDzcbRX843QgwUcb2D/4VQf85tH97/UteoZgZ9o2XhNij/4JamSGnsay3K jXTQqceN1TMk50cNMrZ3XHGESWWO+JHGbuy+lFuXnjKGAPzGTK497+pRozjIO61G eGwEM35h9VxnLAK+WIzu8OCXep1WXUr5ivJqbEVjw1cl4C6aFXJzQDWGXivRq/dt EZsBJwBedrPZLz6uujY/VeYwjMvpMS5GamA8NT7ScmFc58ptHeHTD8oXR+AINEbD hYPMVW0GByATFEiPqTFilpiJz5rpAnXFYjcwXpz3w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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