Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.144.224.30
# gpasswd(1) completion -*- shell-script -*-
_gpasswd()
{
local cur prev words cword
_init_completion || return
case $prev in
--add|--delete|--administrators|--members|-!(-*)[adAM])
COMPREPLY=( $(compgen -u -- "$cur") )
return
;;
esac
if [[ "$cur" == -* ]]; then
# TODO: only -A and -M can be combined
COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
return
fi
COMPREPLY=( $(compgen -g -- "$cur") )
} &&
complete -F _gpasswd gpasswd
# ex: filetype=sh
|