#compdef uu-shred

autoload -U is-at-least

_uu-shred() {
    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[@]}" \
'-n+[overwrite N times instead of the default (3)]' \
'--iterations=[overwrite N times instead of the default (3)]' \
'-s+[shred this many bytes (suffixes like K, M, G accepted)]' \
'--size=[shred this many bytes (suffixes like K, M, G accepted)]' \
'-f[change permissions to allow writing if necessary]' \
'--force[change permissions to allow writing if necessary]' \
'-u[truncate and remove file after overwriting;  See below]' \
'--remove[truncate and remove file after overwriting;  See below]' \
'-v[show progress]' \
'--verbose[show progress]' \
'-x[do not round file sizes up to the next full block;
this is the default for non-regular files]' \
'--exact[do not round file sizes up to the next full block;
this is the default for non-regular files]' \
'-z[add a final overwrite with zeros to hide shredding]' \
'--zero[add a final overwrite with zeros to hide shredding]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::file:_files' \
&& ret=0
    
}

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

_uu-shred "$@"