1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +02:00

39533: add the new -L option, sort options and add some exclusions

This commit is contained in:
Matthew Martin 2016-10-01 09:34:30 -05:00 committed by Oliver Kiddle
parent 276197d1d1
commit c40226022a
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2016-10-13 Oliver Kiddle <opk@zsh.org>
* 39533: Matthew Martin: Completion/Unix/Command/_doas:
add the new -L option, sort options and add some exclusions
2016-10-11 Peter Stephenson <p.stephenson@samsung.com>
* 36108: Src/builtin.c: command -[vV] assumed -p.

View file

@ -9,10 +9,13 @@ do local -x "$e"
done
cmd="$words[1]"
_arguments -s -S \
_arguments -s -S -A '-*' : \
- optL \
'-L[clear any persisted authorizations]' \
- default \
'-a+[specify authentication style]:authentication style' \
'(-n -s)-C+[check config file and report on command matching]:config:_files' \
'(-C)-n[non-interactive: fail rather than prompt for a password]' \
'-a+[specify authentication style]:authentication style' \
'(-C)-s[run a shell]' \
'(-C *)-s[run a shell]' \
'-u+[run command as specified user]:user:_users' \
'*::arguments:{ _comp_priv_prefix=( $cmd -n ${(kv)opt_args[-u]} ) ; _normal }'