summaryrefslogtreecommitdiffstats
path: root/bash-completion/mesg
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/mesg')
-rw-r--r--bash-completion/mesg8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/mesg b/bash-completion/mesg
index 62c98ca29..8513c0299 100644
--- a/bash-completion/mesg
+++ b/bash-completion/mesg
@@ -1,8 +1,14 @@
_mesg_module()
{
- local cur OPTS
+ 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 --verbose -V --version -h --help"