summaryrefslogtreecommitdiff
path: root/completions/groupadd
diff options
context:
space:
mode:
Diffstat (limited to 'completions/groupadd')
-rw-r--r--completions/groupadd4
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/groupadd b/completions/groupadd
index c5a74b7a..013feaa4 100644
--- a/completions/groupadd
+++ b/completions/groupadd
@@ -9,7 +9,7 @@ _groupadd()
# with -g/--gid
case $prev in
- -g|--gid|-K|--key|-p|--password)
+ --gid|--key|--password|-!(-*)[gKp])
return
;;
esac
@@ -17,7 +17,7 @@ _groupadd()
$split && return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
fi
} &&