diff options
Diffstat (limited to 'completions/gpasswd')
-rw-r--r-- | completions/gpasswd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/gpasswd b/completions/gpasswd index ada12b8d..8f27cfec 100644 --- a/completions/gpasswd +++ b/completions/gpasswd @@ -6,19 +6,19 @@ _gpasswd() _init_completion || return case $prev in - -a|--add|-d|--delete|-A|--administrators|-M|--members) - COMPREPLY=( $( compgen -u -- "$cur" ) ) + --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" ) ) + COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) return fi - COMPREPLY=( $( compgen -g -- "$cur" ) ) + COMPREPLY=( $(compgen -g -- "$cur") ) } && complete -F _gpasswd gpasswd |