#compdef uu-realpath

autoload -U is-at-least

_uu-realpath() {
    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[@]}" \
'-q[Do not print warnings for invalid paths]' \
'--quiet[Do not print warnings for invalid paths]' \
'-s[Only strip '\''.'\'' and '\''..'\'' components, but don'\''t resolve symbolic links]' \
'--strip[Only strip '\''.'\'' and '\''..'\'' components, but don'\''t resolve symbolic links]' \
'-z[Separate output filenames with \\0 rather than newline]' \
'--zero[Separate output filenames with \\0 rather than newline]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
':files:_files' \
&& ret=0
    
}

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

_uu-realpath "$@"