flosse / sloc

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

fix #48 #51

Closed liamsi closed 8 years ago

liamsi commented 9 years ago

if options.keys?.length is 1 and not options.reportDetails is not necessary and was introduced in some refactoring (https://github.com/flosse/sloc/commit/fe70a54fa0187454a16e95088188ef8db85d8151). Either delete this block (as in this pull request), or change it to if options.keys?.length is 1 and not options.details. (Second option would only output one number without any further information. Which would be different from the normal behaviour)
Thanks!

flosse commented 8 years ago

@Liamsi sorry for that late reply. I'm going to refactor the cli part, then I'll consider your PR. Thanks for you contribution!