flosse / sloc

simple tool to count SLOC (source lines of code)
MIT License
943 stars 84 forks source link

support include flag #115

Closed kirlen closed 4 years ago

kirlen commented 5 years ago

Simple tweak to support an --include flag, for scenarios where it's preferable to define a regex for files to include rather than exclude.

(In some cases it can be extremely difficult, if not impossible, to define a negative regexp in order to achieve inclusion via clever exclusion.)