#compdef difft

_difft() {
  _arguments -C \
    '*:file:_files' \
    '--help[Print help information]' \
    '--version[Print version information]' \
    '--background[Set the background brightness]' \
    '--byte-limit[Use a line-oriented diff if either input file exceeds this size]' \
    '--check-only[Report whether there are any changes, but don\[cq\]t calculate them]' \
    '--color[When to use color output]' \
    '--context[The number of contextual lines to show around changed lines]' \
    '--display[Display mode for showing results]' \
    '--exit-code[Set the exit code to 1 if there are syntactic changes in any files]' \
    '--graph-limit[Use a line-oriented diff if the structural graph exceed this number of nodes]' \
    {-h,--help}'[Print help information]' \
    '--ignore-comments[Don\[cq\]t consider comments when diffing]' \
    '--list-languages[Print the all the languages supported by difftastic]' \
    '--override[Associate this glob pattern with this language]' \
    '--parse-error-limit[Use a line-oriented diff if the number of parse errors exceeds this value]' \
    '--skip-unchanged[Don\[cq\]t display anything if a file is unchanged]' \
    '--sort-paths[When diffing a directory, output the results sorted by path. This is slower]' \
    '--strip-cr[Remove any carriage return characters before diffing]' \
    '--syntax-highlight[Enable or disable syntax highlighting]' \
    '--tab-width[Treat a tab as this many spaces]' \
    {-V,--version}'[Print version information]' \
    '--width[Use this many columns when calculating line wrapping]' \
    '--dump-syntax[Parse a single file with tree-sitter and display the difftastic syntax tree]' \
    '--dump-ts[Parse a single file with tree-sitter and display the tree-sitter parse tree]'
}

_difft
