facebookarchive / codemod

Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.
Apache License 2.0
4.11k stars 198 forks source link

--count result is incorrect #121

Open kir0ul opened 3 years ago

kir0ul commented 3 years ago

Hi,

It seems that the --count option returns the correct result minus one. For example if I have only one matching string, it returns zero matches, or if I have 30 matches, it returns 29.

Thanks for building for this very useful tool!