#compdef csup

_arguments -s \
    '-1[disable automatic retries]' \
    '-4[Force usage of IPv4 addresses]' \
    '-6[Force usage of IPv6 addresses]' \
    '-A[Local address to bind to when connecting to the server]:local address:_hosts' \
    '-b[Base directory]:base directory:_files -/' \
    '-c[Subdirectory of base for information about collections]:collections directory:_files -/' \
    '-d[maximum number of deleted files]:maximum number of deleted files:' \
    '-h[Server host]:server host:_hosts' \
    '-i[Include only files and directories matching]:file pattern:' \
    '-k[keep temporary copies of failed updates]' \
    '-l[Lock file]:lock file:_files' \
    '-L[Verbosity level]:verbosity level:(0 1 2)' \
    '-p[Server port]:port:_ports' \
    '-r[maximum number of retries]:maximum number of retries:' \
    '-s[suppress status checks]' \
    '-v[print version information]' \
    '(-Z)-z[enable compression]' \
    '(-z)-Z[disable compression]' \
    ':csup file:_files' \
    ':destination directory:_files -/'
