#compdef uu-chmod

autoload -U is-at-least

_uu-chmod() {
    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[@]}" \
'--reference=[use RFILE'\''s mode instead of MODE values]' \
'-c[like verbose but report only when a change is made]' \
'--changes[like verbose but report only when a change is made]' \
'-f[suppress most error messages]' \
'--quiet[suppress most error messages]' \
'-v[output a diagnostic for every file processed]' \
'--verbose[output a diagnostic for every file processed]' \
'--no-preserve-root[do not treat '\''/'\'' specially (the default)]' \
'--preserve-root[fail to operate recursively on '\''/'\'']' \
'-R[change files and directories recursively]' \
'--recursive[change files and directories recursively]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
':MODE:_files' \
':FILE:_files' \
&& ret=0
    
}

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

_uu-chmod "$@"