5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -W "sector" -- $cur) )
13 COMPREPLY=( $(compgen -W "size" -- $cur) )
17 COMPREPLY=( $(compgen -W "number" -- $cur) )
20 '-h'|'--help'|'-V'|'--version')
28 OPTS="--verbose --offset --length --count --force"
31 OPTS="--help --version"
34 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
43 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
49 compopt -o bashdefault -o default
50 COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) )
53 complete -F _blkzone_module blkzone