5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
10 # FIXME: how to append to a string with compgen?
22 COMPREPLY=( $(compgen -W "$OPTS" -- $cur) )
25 '-h'|'--help'|'-V'|'--version')
40 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
45 COMPREPLY=( $(compgen -f -- $cur) )
48 complete -F _lscpu_module lscpu