1#compdef diffstat
2
3_arguments \
4  '-c[prefix each line with hash mark]' \
5  '-e:error file:_files' \
6  '-f:histogram format:((0\:concise 1\:normal 2\:dots 3\:dots+normal 4\:value 5\:value+normal 6\:value+dots 7\:value+dots+normal))' \
7  '-h[help]' \
8  '-k[suppress merging of filenames in report]' \
9  '-l[list only the filenames]' \
10  '-n:minimum width for filenames:' \
11  '-o:output file:_files' \
12  '-p:number of path components:' \
13  '-f:rounding code:((0\:none 1\:round 2\:round+adjustment))' \
14  '-t[overrides histogram, generates csv output]' \
15  '-u[suppress sorting of filenames in report]' \
16  '-v[show progress]' \
17  '-V[print version number]' \
18  '-w:maximum width of histogram:' \
19  '*:file specifications:_files'
20