#compdef uu-expand

autoload -U is-at-least

_uu-expand() {
    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[@]}" \
'*-t+[have tabs N characters apart, not 8 or use comma separated list of explicit tab positions]:N, LIST: ' \
'*--tabs=[have tabs N characters apart, not 8 or use comma separated list of explicit tab positions]:N, LIST: ' \
'-h[Print help information]' \
'--help[Print help information]' \
'-V[Print version information]' \
'--version[Print version information]' \
'-i[do not convert tabs after non blanks]' \
'--initial[do not convert tabs after non blanks]' \
'-U[interpret input file as 8-bit ASCII rather than UTF-8]' \
'--no-utf8[interpret input file as 8-bit ASCII rather than UTF-8]' \
'*::FILES:_files' \
&& ret=0
}

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

_uu-expand "$@"
