]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/isosize
bash-completion: Don't offer any more completions after help or version.
[thirdparty/util-linux.git] / bash-completion / isosize
1 _isosize_module()
2 {
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 OPTS='-d --divisor -x --sectors -h --help -V --version'
8 case $prev in
9 '-d'|'--divisor')
10 COMPREPLY=( $(compgen -W "number" -- $cur) )
11 return 0
12 ;;
13 '-h'|'--help'|'-V'|'--version')
14 return 0
15 ;;
16 esac
17 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
18 return 0
19 }
20 complete -F _isosize_module isosize