#compdef eruption-audio-proxy

autoload -U is-at-least

_eruption-audio-proxy() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" \
'-c+[Sets the configuration file to use]:CONFIG: ' \
'--config=[Sets the configuration file to use]:CONFIG: ' \
'*-v[Verbose mode (-v, -vv, -vvv, etc.)]' \
'*--verbose[Verbose mode (-v, -vv, -vvv, etc.)]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_eruption-audio-proxy_commands" \
"*::: :->eruption-audio-proxy" \
&& ret=0
    case $state in
    (eruption-audio-proxy)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:eruption-audio-proxy-command-$line[1]:"
        case $line[1] in
            (daemon)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
':shell:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_eruption-audio-proxy__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:eruption-audio-proxy-help-command-$line[1]:"
        case $line[1] in
            (daemon)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_eruption-audio-proxy_commands] )) ||
_eruption-audio-proxy_commands() {
    local commands; commands=(
'daemon:Run in background' \
'completions:Generate shell completions' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'eruption-audio-proxy commands' commands "$@"
}
(( $+functions[_eruption-audio-proxy__completions_commands] )) ||
_eruption-audio-proxy__completions_commands() {
    local commands; commands=()
    _describe -t commands 'eruption-audio-proxy completions commands' commands "$@"
}
(( $+functions[_eruption-audio-proxy__help__completions_commands] )) ||
_eruption-audio-proxy__help__completions_commands() {
    local commands; commands=()
    _describe -t commands 'eruption-audio-proxy help completions commands' commands "$@"
}
(( $+functions[_eruption-audio-proxy__daemon_commands] )) ||
_eruption-audio-proxy__daemon_commands() {
    local commands; commands=()
    _describe -t commands 'eruption-audio-proxy daemon commands' commands "$@"
}
(( $+functions[_eruption-audio-proxy__help__daemon_commands] )) ||
_eruption-audio-proxy__help__daemon_commands() {
    local commands; commands=()
    _describe -t commands 'eruption-audio-proxy help daemon commands' commands "$@"
}
(( $+functions[_eruption-audio-proxy__help_commands] )) ||
_eruption-audio-proxy__help_commands() {
    local commands; commands=(
'daemon:Run in background' \
'completions:Generate shell completions' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'eruption-audio-proxy help commands' commands "$@"
}
(( $+functions[_eruption-audio-proxy__help__help_commands] )) ||
_eruption-audio-proxy__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'eruption-audio-proxy help help commands' commands "$@"
}

if [ "$funcstack[1]" = "_eruption-audio-proxy" ]; then
    _eruption-audio-proxy "$@"
else
    compdef _eruption-audio-proxy eruption-audio-proxy
fi
