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

Re: completion: option stacking and arguments!



 ❦ 16 octobre 2015 09:53 +0200, Vincent Bernat <bernat@xxxxxxxx> :

> When using completion with "_arguments '-u=[Run as specified
> user]:user:_users'", completing users after "-u" requires a space or an
> equal sign. However, when enabling short option stacking with "-s", this
> is not the case anymore.
>
> How to still require a space/equal before a mandatory argument when
> using option stacking?

Also, even when the short argument is specified with "-l=-" (for
example), zsh still allows completion without any character (but
disallows completion with a space):

 docker -Dlerr<tab> -> docker -Dlerror
 docker -Dl=err<tab> -> docker -Dl=error
 docker -Dl err<tab> -> docker -Dl err

The whole completion is available here:
 https://github.com/felixr/docker-zsh-completion/
-- 
Localise input and output in subroutines.
            - The Elements of Programming Style (Kernighan & Plauger)



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