davetron5000 / optparse-plus

Start your command line scripts off right in Ruby
http://davetron5000.github.com/optparse-plus
Apache License 2.0
520 stars 54 forks source link

Added a helpful error message when you forget to set a logger. #71

Closed jamonholmgren closed 10 years ago

jamonholmgren commented 10 years ago

I was puzzled for a while at an unhelpful NoMethodError. I had forgotten to include Methadone::CLILogging nor provided my own logger.

This provides a helpful error message. I included a passing test.

davetron5000 commented 10 years ago

Looks good. I don't think this is causing the CI failure for rbx, but I'll look into that before releasing. Thanks for doing this and thanks for the test coverage.

jamonholmgren commented 10 years ago

You bet...thanks for the great gem!