#compdef uu-df

autoload -U is-at-least

_uu-df() {
    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[@]}" \
'-B+[scale sizes by SIZE before printing them; e.g.'\''-BM'\'' prints sizes in units of 1,048,576 bytes]:SIZE: ' \
'--block-size=[scale sizes by SIZE before printing them; e.g.'\''-BM'\'' prints sizes in units of 1,048,576 bytes]:SIZE: ' \
'(-i --inodes -P --portability -T --print-type)*--output=[use the output format defined by FIELD_LIST, or print all fields if FIELD_LIST is omitted.]' \
'*-t+[limit listing to file systems of type TYPE]:TYPE: ' \
'*--type=[limit listing to file systems of type TYPE]:TYPE: ' \
'*-x+[limit listing to file systems not of type TYPE]:TYPE: ' \
'*--exclude-type=[limit listing to file systems not of type TYPE]:TYPE: ' \
'--help[Print help information.]' \
'-a[include dummy file systems]' \
'--all[include dummy file systems]' \
'--total[produce a grand total]' \
'-h[print sizes in human readable format (e.g., 1K 234M 2G)]' \
'--human-readable[print sizes in human readable format (e.g., 1K 234M 2G)]' \
'-H[likewise, but use powers of 1000 not 1024]' \
'--si[likewise, but use powers of 1000 not 1024]' \
'-i[list inode information instead of block usage]' \
'--inodes[list inode information instead of block usage]' \
'-k[like --block-size=1K]' \
'-l[limit listing to local file systems]' \
'--local[limit listing to local file systems]' \
'--no-sync[do not invoke sync before getting usage info (default)]' \
'-P[use the POSIX output format]' \
'--portability[use the POSIX output format]' \
'--sync[invoke sync before getting usage info (non-windows only)]' \
'-T[print file system type]' \
'--print-type[print file system type]' \
'-V[Print version information]' \
'--version[Print version information]' \
'::paths:_files' \
&& ret=0
}

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

_uu-df "$@"
