#compdef tokei

# zsh completions for 'tokei'
local arguments

arguments=(
  {-c,--columns}'[Sets a strict column width of the output, only available for terminal output]:columns:'
  {-e,--exclude}'[Ignore all files & directories matching the pattern]:exclude:'
  {-f,--files}'[Print out statistics on individual files]'
  {-i,--input}'[Gives statistics from a previous tokei run. Can be given a file path, or "stdin" to]:file_input:'
  '--hidden[Count hidden files]'
  {-l,--languages}'[Prints out supported languages and their extensions]'
  '--no-ignore[Dont respect ignore files]'
  '--no-ignore-parent[Dont respect ignore files in parent directories]'
  '--no-ignore-dot[Dont respect .ignore and .tokeignore files, inc. those in parent dirs]'
  '--no-ignore-vcs[Dont respect VCS (.gitignore, .hgignore, etc) ignore files]'
  {-o,--output}'[Outputs Tokei in a specific format. Compile with additional features for more format]:output:'
  '--streaming[Prints (language, path, lines, blanks, code, comments) records as simple lines or as Json for]:streaming:'
  {-s,--sort}'[Sort languages based on column \[files, lines, blanks, code, comments\]]:sort:'
  {-r,--rsort}'[Reverse sort languages based on column \[files, lines, blanks, code, comments\]]:sort:'
  {-t,--type}'[Filters output by language type, seperated by a comma. i.e. -t=Rust,Markdown]:types:'
  {-C,--compact}'[Do not print statistics about embedded languages]'
  {-n,--num-format}'[Format of printed numbers \[commas, dots, plain, underscores\]]:num_format_style'
  {-v,--verbose}'[Set log output level \[1: show unkown, 2: reserved, 3: trace\]]'
  {-h,--help}'[Print help]'
  {-V,--version}'[Print version]'
  '*:filename:_files'
)

_arguments -s $arguments
