File: _visudo

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (12 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (4)
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'