#compdef typos

_typos() {
  _arguments \
    '--file-list[Read list of newline separated paths from file or stdin (if `-`)]:FILE_LIST' \
    {-j,--threads}'[The approximate number of threads to use (default: 0)]:THREADS' \
    '--sort[Sort results]' \
    '--force-exclude[Respect excluded files even for paths passed explicitly]' \
    {-h,--help}'[Print help]' \
    {-V,--version}'[Print version]' \
    {-c,--config}'[Custom config file]:CUSTOM_CONFIG' \
    '--isolated[Ignore implicit configuration files]' \
    '--exclude[Ignore files & directories matching the glob]:GLOB:' \
    '--hidden[Search hidden files and directories]' \
    '--no-ignore[Don'\''t respect ignore files]' \
    '--no-ignore-dot[Don'\''t respect .ignore files]' \
    '--no-ignore-global[Don'\''t respect global ignore files]' \
    '--no-ignore-parent[Don'\''t respect ignore files in parent directories]' \
    '--no-ignore-vcs[Don'\''t respect ignore files in vcs directories]' \
    '--binary[Search binary files]' \
    '--no-check-filenames[Skip verifying spelling in file names]' \
    '--no-check-files[Skip verifying spelling in files]' \
    '--no-unicode[Only allow ASCII characters in identifiers]' \
    '--locale[Language locale]:LOCALE:(en en-gb)' \
    '--diff[Print a diff of what would change]' \
    {-w,--write-changes}'[Write fixes out]' \
    '--files[Debug: Print each file that would be spellchecked]' \
    '--file-types[Debug: Print each files type]' \
    '--highlight-identifiers[Debug: Print back out files, stylizing identifiers that would be spellchecked]' \
    '--identifiers[Debug: Print each identifier that would be spellchecked]' \
    '--highlight-words[Debug: Print back out files, stylizing words that would be spellchecked]' \
    '--words[Debug: Print each word that would be spellchecked]' \
    '--dump-config[Write the current configuration to file with `-` for stdout]:DUMP_CONFIG:' \
    '--type-list[Show all supported file types]' \
    '--format[Render style for messages(default: long)]:FORMAT:(silent brief long json sarif)' \
    '--color[Controls when to use color (default: auto)]:WHEN:(auto always never)' \
    {-v,--verbose}'[Increase logging verbosity]' \
    {-q,--quiet}'[Decrease logging verbosity]' \
    '*:file:_files'
}

_typos
