Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion for aplay from alsa-utils



On 21 Nov 2019, at 17:10, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author