#compdef uu-expr

autoload -U is-at-least

_uu-expr() {
    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[@]}" \
'--version[output version information and exit]' \
'--help[display this help and exit]' \
'::expression:' \
&& ret=0
}

(( $+functions[_uu-expr_commands] )) ||
_uu-expr_commands() {
    local commands; commands=()
    _describe -t commands 'uu-expr commands' commands "$@"
}

_uu-expr "$@"
