summaryrefslogtreecommitdiff
path: root/bash-completion/raw
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/raw')
-rw-r--r--bash-completion/raw8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/raw b/bash-completion/raw
index 27f03545..231f2cc4 100644
--- a/bash-completion/raw
+++ b/bash-completion/raw
@@ -1,8 +1,14 @@
_raw_module()
{
- local cur
+ local cur prev
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
-*)
local OPTS