zsh-workers
 help / color / mirror / code / Atom feed
From: Anthony Heading <anthony@ajrh.net>
To: zsh-workers@zsh.org
Subject: tiny zparseopts doc fix
Date: Sun, 06 Aug 2017 23:14:50 -0400	[thread overview]
Message-ID: <1502075690.2165128.1065134360.4FCE0220@webmail.messagingengine.com> (raw)

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


                 reply	other threads:[~2017-08-07  3:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1502075690.2165128.1065134360.4FCE0220@webmail.messagingengine.com \
    --to=anthony@ajrh.net \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).