about summary refs log tree commit diff
path: root/Completion/Unix/Command/_visudo
blob: 2cb6d85a57295858daea6453a84dd66ff4c9a62b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#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'