From 7f619220bf7c85b367f63fa11407da273eb50951 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sat, 4 Nov 2017 17:29:03 +0000 Subject: unposted: _sshfs: Make the -o option repeatable, accept "--". --- Completion/Linux/Command/_sshfs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion/Linux') diff --git a/Completion/Linux/Command/_sshfs b/Completion/Linux/Command/_sshfs index fe976288d..6e889cf49 100644 --- a/Completion/Linux/Command/_sshfs +++ b/Completion/Linux/Command/_sshfs @@ -4,13 +4,14 @@ local curcontext="$curcontext" state state_descr line typeset -A opt_args integer ret=1 -_arguments -C \ +# TODO: in the "user@host" argument, the "user@" part should be optional +_arguments -C -S : \ '(-)'{-h,--help}'[display help information]' \ '(-)'{-V,--version}'[display version information]' \ '-p[specify TCP port]:tcp port:_ports' \ '-C[enable compression]' \ '-F[specify ssh config file]:file:_files' \ - '-o[specify mount options]:options:->options' \ + '*-o[specify mount options]:options:->options' \ '(-f)-d[enable debug output]' \ '-f[foreground]' \ '-s[disable multithreaded operation]' \ -- cgit 1.4.1