#compdef uu-wc

autoload -U is-at-least

_uu-wc() {
    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[@]}" \
'--files0-from=[read input from the files specified by
    NUL-terminated names in file F;
    If F is - then read names from standard input]:F:_files' \
'-c[print the byte counts]' \
'--bytes[print the byte counts]' \
'-m[print the character counts]' \
'--chars[print the character counts]' \
'-l[print the newline counts]' \
'--lines[print the newline counts]' \
'-L[print the length of the longest line]' \
'--max-line-length[print the length of the longest line]' \
'-w[print the word counts]' \
'--words[print the word counts]' \
'-h[Print help information]' \
'--help[Print help information]' \
'-V[Print version information]' \
'--version[Print version information]' \
'::files:_files' \
&& ret=0
}

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

_uu-wc "$@"
