#compdef tarsnap

# Custom header for the zsh completion file for tarsnap
#
# Place this file in one of the completion folders listed in $fpath (e.g.
# /usr/share/zsh/functions/Completion/Linux or $HOME/.zsh/functions).
# Then either restart zsh, or: autoload -Uz _tarsnap; compdef _tarsnap tarsnap

# Set the following variable to the path of a file containing the output from
# "tarsnap --list-archives", i.e. one archive name per line.  If left blank
# then archive names will not be completed.
local archive_list_file=

if [ -n "${archive_list_file}" ]; then
    archive_list=( ${(uf)"$(< "${archive_list_file}")"} )
else
    archive_list=
fi

# AUTOMATICALLY GENERATED by `shtab`, then modified by man_to_zsh.py


_shtab_tarsnap_commands() {
  local _commands=(
    "--fsck:integrity checks and reconstruct cache"
    "--fsck-prune:run as --fsck, but prune corrupt archives"
    "--initialize-cachedir:create and initialize the cachedir"
    "--list-archives:print the names of archives stored"
    "--nuke:delete all of the archives stored"
    "--print-stats:print global statistics concerning archives"
    "--recover:recover a partial archive from a checkpoint"
    "--verify-config:check config file(s) for syntactic errors"
    "--version:print version number of tarsnap and exit"
    "-c:create an archive"
    "-d:delete the specified archive"
    "-r:extract an archive to to stdout"
    "-t:list archive contents to stdout"
    "-x:extract to disk from the archive"
  )
  _describe 'tarsnap commands' _commands
}

_shtab_tarsnap_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__fsck_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--cachedir[specify cache directory]:cache-dir:{_files -/}"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__fsck_prune_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__initialize_cachedir_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__list_archives_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "-f[specify hash of archive name to operate on (requires --hashes)]:tapehash"
  "--hashes[make --list-archives print hashes]"
  "--null-output[output split by NULs instead of newlines]"
  "-v[produce verbose output]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__nuke_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__print_stats_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--cachedir[specify cache directory]:cache-dir:{_files -/}"
  "-f[specify name of archive to operate on]:archive-name:(${archive_list}):"
  "--keep-going[keep going after missing an archive]"
  "--null-output[output split by NULs instead of newlines]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__recover_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__verify_config_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap__version_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap_c_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--aggressive-networking[use multiple TCP connections]"
  "-C[change directory before adding files]:directory:{_files -/}"
  "--cachedir[specify cache directory]:cache-dir:{_files -/}"
  "--check-links[warn unless all links to files are archived]"
  "--checkpoint-bytes[checkpoint every ARG bytes of uploaded data]:bytespercheckpoint:"
  "--creationtime[manually specify a creation time]:X:"
  "--disk-pause[often pause for ARG ms while archiving]:X:"
  "--dry-run[simulate archive creation (with file data)]"
  "--dry-run-metadata[simulate archive creation (metadata only)]"
  "--exclude[do not process certain files or directories]:pattern:"
  "-f[specify name of archive to operate on]:archive-name:(${archive_list}):"
  "-H[store the targets of a symbolic links]"
  "--include[process only certain files or directories]:pattern:"
  "--insane-filesystems[allow descent into synthetic filesystems]"
  "-L[all symbolic links will be followed]"
  "--lowmem[reduce memory usage with limited cache]"
  "--maxbw[limit upload to ARG bytes]:numbytes:"
  "-n[do not recurse into directories]"
  "--newer[only add files and dirs newer than ARG]:date:"
  "--newer-mtime[like --newer, but mtime instead of ctime]:date:"
  "--newer-than[only include paths dirs newer than the ARG]:filename:{_files}"
  "--newer-mtime-than[like --newer-than, but mtime not ctime]:filename:{_files}"
  "--noatime[do not modify atime, if possible]"
  "--nodump[do not read files with the nodump file flag]"
  "--one-file-system[do not cross mount points]"
  "-P[preserve pathnames]"
  "--print-stats[print statistics for the archive]"
  "--snaptime[file with mtime prior to snapshot creation]:filename:{_files}"
  "--store-atime[store file access times]"
  "-T[read the list of files to be extracted]:filename:{_files}"
  "--totals[print the size of the archive]"
  "-v[produce verbose output]"
  "--verylowmem[reduce memory usage by not caching anything]"
  "-w[ask for confirmation for every action]"
  "-X[read a list of exclusion patterns]:filename:{_files}"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap_d_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--cachedir[specify cache directory]:cache-dir:{_files -/}"
  "-f[specify name of archive to operate on]:archive-name:(${archive_list}):"
  "--keep-going[keep going after missing an archive]"
  "--print-stats[print statistics for the archive]"
  "-v[produce verbose output]"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap_r_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "-f[specify name of archive to operate on]:archive-name:(${archive_list}):"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap_t_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "--exclude[do not process certain files or directories]:pattern:"
  "-f[specify name of archive to operate on]:archive-name:(${archive_list}):"
  "--include[process only certain files or directories]:pattern:"
  "--iso-dates[print dates as yyyy-mm-dd hh\:mm\:ss]"
  "--newer[only add files and dirs newer than ARG]:date:"
  "--null-output[output split by NULs instead of newlines]"
  "-O[write files to stdout (-x) or stderr (-t)]"
  "-P[preserve pathnames]"
  "-q[stop after the first selected entry]"
  "-T[read the list of files to be extracted]:filename:{_files}"
  "-v[produce verbose output]"
  "-X[read a list of exclusion patterns]:filename:{_files}"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)

_shtab_tarsnap_x_options=(
  "(- : *)"{-h,--help}"[show this help message and exit]"
  "-C[change directory before adding files]:directory:{_files -/}"
  "--chroot[chroot to the current directory after -C]"
  "--exclude[do not process certain files or directories]:pattern:"
  "-f[specify name of archive to operate on]:archive-name:(${archive_list}):"
  "--include[process only certain files or directories]:pattern:"
  "-k[do not overwrite existing files]"
  "--keep-newer-files[do not overwrite newer existing files]"
  "-m[do not extract modification time]"
  "--newer[only add files and dirs newer than ARG]:date:"
  "--null-output[output split by NULs instead of newlines]"
  "--numeric-owner[ignore symbolic ownership when restoring]"
  "-O[write files to stdout (-x) or stderr (-t)]"
  "-o[use the current uid and gid\; requires -p]"
  "-P[preserve pathnames]"
  "-p[preserve file permissions]"
  "-q[stop after the first selected entry]"
  "--resume-extract[don\'t extract files that are on disk]"
  "-S[extract files as sparse files]"
  "--strip-components[remove ARG number of leading path elements]:count:"
  "-T[read the list of files to be extracted]:filename:{_files}"
  "-U[unlink files before creating them]"
  "-v[produce verbose output]"
  "-w[ask for confirmation for every action]"
  "-X[read a list of exclusion patterns]:filename:{_files}"
  "--archive-names[read a list of archive names from a file]:filename:{_files}"
  "--configfile[add to the list of config files to be read]:filename:{_files}"
  "--csv-file[write statistics in CSV format to a file]:filename:{_files}"
  "--dump-config[print all config lines]"
  "--fast-read[stop after the first selected entry]"
  "--force-resources[no passphrase-encrypted resource limits]"
  "--humanize-numbers[use SI prefixes for --print-stats]"
  "-I[read the list of names to be extracted]"
  "--keyfile[specify key file]:key-file:{_files}"
  "-l[warn unless all links to files are archived]"
  "--maxbw-rate[limit bandwidth to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-down[limit download to ARG bytes per second]:bytespersecond:"
  "--maxbw-rate-up[limit upload to ARG bytes per second]:bytespersecond:"
  "--no-aggressive-networking[ignore any aggressive-networking option]"
  "--no-config-exclude[ignore any exclude option]"
  "--no-config-include[ignore any include option]"
  "--no-default-config[do not read the default configuration files]"
  "--no-disk-pause[ignore any disk-pause option]"
  "--no-force-resources[ignore any force-resources option]"
  "--no-humanize-numbers[ignore any humanize-numbers option]"
  "--no-insane-filesystems[ignore any insane-filesystems option]"
  "--no-iso-dates[ignore any iso-dates option]"
  "--no-maxbw[ignore any maxbw option]"
  "--no-maxbw-rate-down[ignore any maxbw-rate-down option]"
  "--no-maxbw-rate-up[ignore any maxbw-rate-up option]"
  "--no-noatime[ignore any noatime option]"
  "--no-nodump[ignore any nodump option]"
  "--no-print-stats[ignore any print-stats option]"
  "--no-progress-bytes[ignore any progress-bytes option]"
  "--no-quiet[ignore any quiet option]"
  "--no-retry-forever[ignore any retry-forever option]"
  "--no-snaptime[ignore any snaptime option]"
  "--no-store-atime[ignore any store-atime option]"
  "--no-totals[ignore any totals option]"
  "--noisy-warnings[verbose when warning about network glitches]"
  "--normalmem[ignore any lowmem or verylowmem option]"
  "--null[input split by NULs instead of newlines]"
  "--null-input[input split by NULs instead of newlines]"
  "--passphrase[read passphrase from ARG, not \/dev\/tty]:method\:arg:"
  "--progress-bytes[print a progress messsage each X bytes]:X:"
  "--quiet[avoid printing some warnings]"
  "--retry-forever[don\'t stop connecting to the Tarsnap server]"
  "-s[modify names according to pattern]:pattern:"
  "--verify-config[check config file(s) for syntactic errors]"
  "--version[print version number of tarsnap and exit]"
)


_shtab_tarsnap() {
  local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'

  if ((${_shtab_tarsnap_options[(I)${(q)one_or_more}*]} + ${_shtab_tarsnap_options[(I)${(q)remainder}*]} == 0)); then  # noqa: E501
    _shtab_tarsnap_options+=(': :_shtab_tarsnap_commands' '*::: :->tarsnap')
  fi
  _arguments -C $_shtab_tarsnap_options

  case $state in
    tarsnap)
      words=($line[1] "${words[@]}")
      (( CURRENT += 1 ))
      curcontext="${curcontext%:*:*}:_shtab_tarsnap-$line[1]:"
      case $line[1] in
        --fsck) _arguments -C $_shtab_tarsnap__fsck_options ;;
        --fsck-prune) _arguments -C $_shtab_tarsnap__fsck_prune_options ;;
        --initialize-cachedir) _arguments -C $_shtab_tarsnap__initialize_cachedir_options ;;
        --list-archives) _arguments -C $_shtab_tarsnap__list_archives_options ;;
        --nuke) _arguments -C $_shtab_tarsnap__nuke_options ;;
        --print-stats) _arguments -C $_shtab_tarsnap__print_stats_options ;;
        --recover) _arguments -C $_shtab_tarsnap__recover_options ;;
        --verify-config) _arguments -C $_shtab_tarsnap__verify_config_options ;;
        --version) _arguments -C $_shtab_tarsnap__version_options ;;
        -c) _arguments -C $_shtab_tarsnap_c_options ;;
        -d) _arguments -C $_shtab_tarsnap_d_options ;;
        -r) _arguments -C $_shtab_tarsnap_r_options ;;
        -t) _arguments -C $_shtab_tarsnap_t_options ;;
        -x) _arguments -C $_shtab_tarsnap_x_options ;;
      esac
  esac
}



typeset -A opt_args
_shtab_tarsnap "$@"
