diff options
Diffstat (limited to 'bash-completion/rev')
-rw-r--r-- | bash-completion/rev | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/rev b/bash-completion/rev index f891f191..2ba57816 100644 --- a/bash-completion/rev +++ b/bash-completion/rev @@ -1,8 +1,14 @@ _rev_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 --version -h --help" |