zsh-workers
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Completion for aplay from alsa-utils
Date: Mon, 25 Nov 2019 20:16:54 -0600	[thread overview]
Message-ID: <76A4FE80-C3E6-4038-84E1-FDCC727D34F0@dana.is> (raw)
In-Reply-To: <CAKc7PVCVv1FwjyZUtrdANM-oWi484j1uRY7O14tQiddq94hYmg@mail.gmail.com>

On 25 Nov 2019, at 06:10, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> Ok, it has been resolved – the exclusion for -v and --verbose was
> causing the repeat-problem. After removing the exclusion, the options
> can be repeated.

More things, sry:

> +  '(-h --help)'{-h,--help}'[print help message]'
> +  --version'[print current version]'

Usually options that can't be used together with any other arguments, like
these two, are made fully exclusive via `(: * -)` or similar

> +  '(-D+ --device=)'{-D+,--device=}'[select PCM by name]'

You can't put the +/= syntax in the exclusion thing, it won't match like that.
See my earlier example

> +_arguments -sS $opts

This needs to be `-s -S`, per the documentation i mentioned before:

> Options to _arguments itself must be in separate words, i.e. -s -w, not -sw.

dana


  reply	other threads:[~2019-11-26  2:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-02 21:13 Sebastian Gniazdowski
2019-11-03 23:17 ` dana
2019-11-04 10:38   ` Oliver Kiddle
2019-11-21 23:10   ` Sebastian Gniazdowski
2019-11-22  3:05     ` dana
2019-11-25 10:16       ` Sebastian Gniazdowski
2019-11-25 12:10         ` Sebastian Gniazdowski
2019-11-26  2:16           ` dana [this message]
2019-12-01 21:11             ` Sebastian Gniazdowski
2019-11-22 15:17     ` Eric Cook
2019-11-25  9:27       ` Sebastian Gniazdowski

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=76A4FE80-C3E6-4038-84E1-FDCC727D34F0@dana.is \
    --to=dana@dana.is \
    --cc=sgniazdowski@gmail.com \
    --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).