如何在cloc中忽略基于后缀的文件..?

ATV*_*ATV 6 open-source lines-of-code cloc

这应该是一项微不足道的任务,但既没有阅读文档和手册页也没有谷歌搜索提出了我想要实现的目标的解决方案:

cloc 正在扫描我们的源代码树,我们希望它忽略所有*.html和*.css文件.

有没有办法给出cloc一个文件扩展名列表来忽略..?

Mar*_*inW 5

通过阅读帮助,可以cloc --help得到:

--exclude-ext=<ext1>[,<ext2>[...]] 
Do not count files having the given file name extensions.
Run Code Online (Sandbox Code Playgroud)

我试过了

cloc <file(s)/dir(s)> --exclude-ext=html,css
Run Code Online (Sandbox Code Playgroud)

并按预期工作。