summaryrefslogtreecommitdiffstats
path: root/bash-completion/newgrp
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/newgrp')
-rw-r--r--bash-completion/newgrp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash-completion/newgrp b/bash-completion/newgrp
index 567c08cfc..3e080dfd3 100644
--- a/bash-completion/newgrp
+++ b/bash-completion/newgrp
@@ -3,6 +3,12 @@ _newgrp_module()
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-V --version -h --help"