summaryrefslogtreecommitdiffstats
path: root/bash-completion/delpart
diff options
context:
space:
mode:
authorVille Skyttä2013-04-07 10:12:04 +0200
committerKarel Zak2013-04-08 17:06:52 +0200
commitd4f9b8d74c5110c6ee92483facd7a0d94a1a9e57 (patch)
tree4457e6b5111b2fbea8c1591b44fecc56037f49cc /bash-completion/delpart
parentlogger: make socket initialization in main() more readable (diff)
downloadkernel-qcow2-util-linux-d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57.tar.gz
kernel-qcow2-util-linux-d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57.tar.xz
kernel-qcow2-util-linux-d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57.zip
bash-completion: Don't offer any more completions after help or version.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Diffstat (limited to 'bash-completion/delpart')
-rw-r--r--bash-completion/delpart5
1 files changed, 5 insertions, 0 deletions
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=''