#compdef gpgv-sq

autoload -U is-at-least

_gpgv-sq() {
    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[@]}" : \
'-v+[verbose]: :_default' \
'--verbose=[verbose]: :_default' \
'-q+[be somewhat more quiet]: :_default' \
'--quiet=[be somewhat more quiet]: :_default' \
'--keyring=[take the keys from the keyring FILE]:FILE:_default' \
'-o+[write output to FILE]:FILE:_default' \
'--output=[write output to FILE]:FILE:_default' \
'--ignore-time-conflict=[make timestamp conflicts only a warning]: :_default' \
'--status-fd=[write status info to this FD]:FD:_default' \
'--weak-digest=[reject signatures made with ALGO]:ALGO:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'::sig-file -- Signatures or inline-signed message to verify.  If not given, or `-` is given, the signature or inline-signed message is read from stdin.:_default' \
'*::dat-file -- If SIG-FILE is a detached signature, DATA-FILE is the data the signature is supposed to protect.  If given multiple times, the signature is assumed cover the concatenation of all files.:_default' \
&& ret=0
}

(( $+functions[_gpgv-sq_commands] )) ||
_gpgv-sq_commands() {
    local commands; commands=()
    _describe -t commands 'gpgv-sq commands' commands "$@"
}

if [ "$funcstack[1]" = "_gpgv-sq" ]; then
    _gpgv-sq "$@"
else
    compdef _gpgv-sq gpgv-sq
fi
