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: Thu, 21 Nov 2019 21:05:45 -0600	[thread overview]
Message-ID: <E32D4FE3-2CDC-41ED-94AF-16705CE87CF2@dana.is> (raw)
In-Reply-To: <CAKc7PVDYErjZovuYmyaEH8EfgFibwwarac33t6EchYdrNZuW6w@mail.gmail.com>

On 21 Nov 2019, at 17:10, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> > * There are no exclusions for any of the alias options (e.g., -D and --device
> > should be exclusive)
>
> How to add them?

'(-D --device)' (or whatever) at the beginning of the arg spec

On 21 Nov 2019, at 17:10, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> --file-type and --process-id-file take arguments without =. How to add
> arguments to their spec, should it be +?

I don't know why they're formatted differently in the help output, but AFAICT
they're all the same, they all use the normal getopt_long() syntax for options
with arguments

On 21 Nov 2019, at 17:10, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> > * -v is cumulative, but there is no * in the spec
>
> What do you mean?

-v can be supplied multiple times, which your description mentions, but
without a * near the beginning of the arg spec it will only be completed once
at most

The spec syntax is described under the _arguments section in zshcompsys, if
you're unfamiliar

dana


  reply	other threads:[~2019-11-22  3:06 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 [this message]
2019-11-25 10:16       ` Sebastian Gniazdowski
2019-11-25 12:10         ` Sebastian Gniazdowski
2019-11-26  2:16           ` dana
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=E32D4FE3-2CDC-41ED-94AF-16705CE87CF2@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).