summaryrefslogtreecommitdiff
path: root/bash-completion/write
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/write')
-rw-r--r--bash-completion/write8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/write b/bash-completion/write
index d41159b2..1fe08072 100644
--- a/bash-completion/write
+++ b/bash-completion/write
@@ -1,8 +1,14 @@
_write_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 $COMP_CWORD in
1)
COMPREPLY=( $(compgen -u -- $cur) )