mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-11 16:51:26 +02:00
* Update tail to support -q/-v on NetBSD * Add several new functions (with one change needed to _hosts compdefs)
12 lines
545 B
Text
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'
|