#compdef uu-tail

autoload -U is-at-least

_uu-tail() {
    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[@]}" \
'-c+[Number of bytes to print]' \
'--bytes=[Number of bytes to print]' \
'-n+[Number of lines to print]' \
'--lines=[Number of lines to print]' \
'--pid=[with -f, terminate after process ID, PID dies]' \
'-s+[Number or seconds to sleep between polling the file when running with -f]' \
'--sleep-interval=[Number or seconds to sleep between polling the file when running with -f]' \
'-f[Print the file as it grows]' \
'--follow[Print the file as it grows]' \
'-q[never output headers giving file names]' \
'--quiet[never output headers giving file names]' \
'-v[always output headers giving file names]' \
'--verbose[always output headers giving file names]' \
'-z[Line delimiter is NUL, not newline]' \
'--zero-terminated[Line delimiter is NUL, not newline]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::files:_files' \
&& ret=0
    
}

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

_uu-tail "$@"