1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-11 16:51:26 +02:00
zsh/Completion/Unix/Command/_visudo
dana 43247252dd 43897: Add/update various completion functions
* Update tail to support -q/-v on NetBSD
* Add several new functions (with one change needed to _hosts compdefs)
2018-12-17 14:49:33 -06:00

12 lines
545 B
Text

#compdef visudo
_arguments -s -S : \
'(: * -)'{-h,--help}'[display help information]' \
'(: * -)'{-V,--version}'[display version information]' \
'(-f --file)'{-f+,--file=}'[specify sudoers file]:sudoers file:_files' \
+ c \
'(x -c --check)'{-c,--check}'[check sudoers file for errors only]' \
'(-q --quiet)'{-q,--quiet}'[suppress error messages (with -c)]' \
'(x -s --strict)'{-s,--strict}'[enable strict checking]' \
+ '(x)' \
'(c)'{-x+,--export=}'[export sudoers file to specified JSON output file]:JSON output file:_files'