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

Re: oggenc tabcompletion itch



"Mikael Magnusson" wrote:
> The options completion for oggenc wants options like -q 3 with a
> space, but oggenc accepts -q3 without a space happily too. Being lazy

> the line for -q in _vorbis looks like
>       '(-q --quality)'{-q,--quality=}'[set encoding quality]:quality:(0 1 2 3 4 5 6 7 8 9 10)' \

By putting a + after the -q, you can indicate that the argument can
optionally be in the same word. Similarly, a - would mean that the
argument must be in the same word. So the line needs to be changed to:
        '(-q --quality)'{-q+,--quality=}'[set encoding quality]:quality:(0 1 2 3 4 5 6 7 8 9 10)' \

Oliver



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