From d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Sun, 7 Apr 2013 11:12:04 +0300 Subject: bash-completion: Don't offer any more completions after help or version. Signed-off-by: Ville Skyttä --- bash-completion/delpart | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bash-completion/delpart') diff --git a/bash-completion/delpart b/bash-completion/delpart index e3ee40629..70543f0a0 100644 --- a/bash-completion/delpart +++ b/bash-completion/delpart @@ -4,6 +4,11 @@ _delpart_module() 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) local DEV TYPE DEVICES='' -- cgit v1.2.3-55-g7522