]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/resizepart
bash-completion: Don't offer any more completions after help or version.
[thirdparty/util-linux.git] / bash-completion / resizepart
index b178b529cb46e7f04258f7d35a618e69b794d732..e55005aa68e81be925ea480e5a4eaef96f1408ec 100644 (file)
@@ -3,6 +3,12 @@ _resizepart_module()
        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 $COMP_CWORD in
                1)
                        local DEV TYPE DEVICES=''