#compdef uu-numfmt

autoload -U is-at-least

_uu-numfmt() {
    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[@]}" \
'-d+[use X instead of whitespace for field delimiter]' \
'--delimiter=[use X instead of whitespace for field delimiter]' \
'--field=[replace the numbers in these input fields (default=1) see FIELDS below]' \
'--from=[auto-scale input numbers to UNITs; see UNIT below]' \
'--to=[auto-scale output numbers to UNITs; see UNIT below]' \
'--padding=[pad the output to N characters; positive N will right-align; negative N will left-align; padding is ignored if the output is wider than N; the default is to automatically pad if a whitespace is found]' \
'--header=[print (without converting) the first N header lines; N defaults to 1 if not specified]' \
'--round=[use METHOD for rounding when scaling; METHOD can be: up,down, from-zero (default), towards-zero, nearest]: :(up down from-zero towards-zero nearest)' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::NUMBER:_files' \
&& ret=0
    
}

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

_uu-numfmt "$@"