#compdef arch-audit

typeset -A opt_args

local context state line state_descr
typeset -A opt_args

_arguments -s -S \
"(-h --help)"{-h,--help}"[Prints help information]" \
"(*-q --quiet)"{"*-q","--quiet"}"[Show only vulnerable package names and their versions]" \
"(-t --show-testing)"{-t,--show-testing}"[Show packages which are in the [testing] repos. See https://wiki.archlinux.org/index.php/Official_repositories#Testing_repositories]" \
"(-u --upgradable)"{-u,--upgradable}"[Show only packages that have already been fixed]" \
"(-V --version)"{-V,--version}"[Prints version information]" \
"(-b --dbpath)"{-b,--dbpath}"[Set an alternate database location]:dbpath:_files -/" \
"(-C --color)"{-C,--color}"[Colorize the output]:color:(never always auto)" \
"(-f --format)"{-f,--format}"[Specify a format to control the output. Placeholders are %n (pkgname), %c (CVEs), %v (fixed version) and %r (required by)]:format" \
&& return 0
