danielstjules / jsinspect

Detect copy-pasted and structurally similar code
MIT License
3.56k stars 128 forks source link

error: unknown option -m #46

Closed ilyabreev closed 7 years ago

ilyabreev commented 7 years ago

jsinspect 0.8.0 (windows)

jsinspect -i --ignore "public|test|\/js" -m 3

gives

error: unknown option '-m'

According to the documentation -m sets min matches.

danielstjules commented 7 years ago

It works if you specify a path:

jsinspect -i --ignore "public|test|\/js" -m 3 .

I wonder if this is a bug with option parsing

danielstjules commented 7 years ago

Nevermind, the logic was in master and never published. Just bumped and released 0.9 :)