Avoid duplicate output and print all forbidden licenses#60
Avoid duplicate output and print all forbidden licenses#60Bobgy merged 2 commits intogoogle:masterfrom lavrd:master
Conversation
…en licenses before exit
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
Bobgy
left a comment
There was a problem hiding this comment.
Thanks! These are neat improvements!
First update
I added following lines to avoid duplicate output on error:
For example, we have two folders (./test1, test2) with GNU AGPLv3 license.
When I execute following command:
And ./test folder is not exists, we have following output:
So, in this output we have error, then usage output, and error again. The first error message and usage output looks unnecessary.
But with my update output will be:
And it is look nicer.
Second update
I added a code to print all forbidden license before program exit. I think it will be more convenient to check for all forbidden licenses.
For example, we have two folders (./test1, test2) with GNU AGPLv3 license.
Output without updates:
Output with updates: