_dualsensectl()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="--help --version"
    verbs=(power-off battery lightbar player-leds microphone microphone-led)

    if [[ ${cur} = -* ]] ; then
        COMPREPLY=( $(compgen -W '${opts}' -- "$cur") )
    else
        COMPREPLY=( $(compgen -W '${verbs[*]}' -- "$cur") )
    fi
}

complete -F _dualsensectl dualsensectl
