File: _gpasswd

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-- 701 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#compdef gpasswd

_arguments -s \
  '(-a --add -d --delete)'{-a,--add}'[add user to group]: : _users' \
  '(-d --delete -a --add)'{-d,--delete}'[remove user from group]: : _users' \
  '(-)'{-h,--help}'[display help]' \
  '(-Q --root)'{-Q,--root}'[specify directory to chroot into]: : _files -/' \
  '(-r --remove-password)'{-r,--remove-password}'[remove the group password]' \
  '(-R --restrict)'{-R,--restrict}'[restrict access to GROUP to its members]' \
  '(-M --members -A --administrators)'{-M,--members}'[set the list of members of GROUP]: :_sequence _users' \
  '(-A --administrators -M --members)'{-A,--administrators}'[set the list of admins for GROUP]: :_sequence _users' \
  '1: : _groups'