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

Re: PATCH: some repeatable options in completions



Oliver Kiddle wrote on Fri, 27 Sep 2019 09:40 +00:00:
> ssh, multiple -t options force tty allocation, even if ssh has no local
> tty. So I'm not sure there's any meaning to specifying it more than
> twice but _arguments doesn't provide an easy way to indicate that.
> 

(untested) How about:

         '(-t -tt)-T[disable pseudo-tty allocation]' \
         '(-T)-t[force pseudo-tty allocation]' \
         "(-T)-tt[force pseudo-tty allocation even if have no controlling tty]" \

?

>        '-s[invoke subsystem]' \
>        '(-t)-T[disable pseudo-tty allocation]' \
> -      '(-T)-t[force pseudo-tty allocation]' \
> +      '(-T)*-t[force pseudo-tty allocation]' \
>        '-V[show version number]' \
>        '(-q)*-v[verbose mode (multiple increase verbosity, up to 3)]' \
>        '-W+[forward standard input and output to host]:stdinout forward:->hostport' \



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