5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
8 '-h'|'--help'|'-V'|'--version')
12 if [ $COMP_CWORD -eq 1 ]; then
13 COMPREPLY=( $(compgen -W "$($1 --list)" -- $cur) )
36 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
40 compopt -o bashdefault
41 COMPREPLY=( $(compgen -c -- $cur) )
44 complete -F _setarch_module setarch