# avctrl completion -*- shell-script -*- proc _avctrl { local cur prev words cword _init_completion || return if [[ "$cur" == -* ]] { setglobal COMPREPLY = ''( $( compgen -W '--help --quiet' -- "$cur" ) ) } else { local args _count_args if [[ $args -eq 1 ]] { setglobal COMPREPLY = ''( $( compgen -W 'discover switch' -- "$cur" ) ) } } } && complete -F _avctrl avctrl # ex: ts=4 sw=4 et filetype=sh