acrmp/foodcritic — pull request #46 by juanje (2012-06-26 14:17:43+00:00)
Title: Add help message when invalid option is passed

When I was working on the tests for the `:exclude_paths` option (#45), I realized that the `InvalidOptions` were supposed to be controled, but they weren't.

The test for the _unimplemented_ option **verbose** actually weren't working because the short option `-v` did exists and it was called to `:version`, so it was showing the Foodcritic's version instead of the usage text.

I did some changes at the text and added a new one to test short and long unimplemented options and I added the code to control this exception and show the usage text.

I understand this is the expected behavior, isn't it?