#compdef connectiond

autoload -U is-at-least

_connectiond() {
    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[@]}" \
'*-L+[Start daemon in listening mode binding the provided local address]: :_hosts' \
'*--listen=[Start daemon in listening mode binding the provided local address]: :_hosts' \
'-C+[Connect to a remote peer with the provided address after start]' \
'--connect=[Connect to a remote peer with the provided address after start]' \
'-p+[Customize port used by lightning peer network]' \
'--port=[Customize port used by lightning peer network]' \
'-o+[Overlay peer communications through different transport protocol]: :(tcp zmq http websocket smtp)' \
'--overlay=[Overlay peer communications through different transport protocol]: :(tcp zmq http websocket smtp)' \
'-k+[Node key file]: :_files' \
'--key-file=[Node key file]: :_files' \
'-d+[Data directory path]: :_files -/' \
'--data-dir=[Data directory path]: :_files -/' \
'-c+[Path to the configuration file]: :_files' \
'--config=[Path to the configuration file]: :_files' \
'*-T+[Use Tor]: :_hosts' \
'*--tor-proxy=[Use Tor]: :_hosts' \
'-m+[ZMQ socket name/address to forward all incoming lightning messages]: :_files' \
'--msg-socket=[ZMQ socket name/address to forward all incoming lightning messages]: :_files' \
'-x+[ZMQ socket name/address for daemon control interface]: :_files' \
'--ctl-socket=[ZMQ socket name/address for daemon control interface]: :_files' \
'-n+[Blockchain to use]' \
'--chain=[Blockchain to use]' \
'*-v[Set verbosity level]' \
'*--verbose[Set verbosity level]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
    
}

(( $+functions[_connectiond_commands] )) ||
_connectiond_commands() {
    local commands; commands=(
        
    )
    _describe -t commands 'connectiond commands' commands "$@"
}

_connectiond "$@"