5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
8 '-h'|'--help'|'-V'|'--version')
15 OPTS="--query --all --help --version"
16 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
20 COMPREPLY=( $(compgen -W "$(for I in /dev/raw/*; do if [ -e $I ]; then echo $I; fi; done)" -- $cur) )
23 complete -F _raw_module raw