codegram/spinach — Issue #55: handle invalid options
Author: et
Created: 2011-10-24 18:25:23+00:00
State: open

spinach gracefully fail it receives an invalid option:

```
➜ foo git:(master) spinach --foo
/home/et/.rvm/gems/ruby-1.9.3-preview1@spinach-rails/gems/spinach-0.1.5.2/lib/spinach/cli.rb:65:in `parse_options': invalid option: --foo (OptionParser::InvalidOption)
from /home/et/.rvm/gems/ruby-1.9.3-preview1@spinach-rails/gems/spinach-0.1.5.2/lib/spinach/cli.rb:50:in `options'
from /home/et/.rvm/gems/ruby-1.9.3-preview1@spinach-rails/gems/spinach-0.1.5.2/lib/spinach/cli.rb:37:in `init_reporter'
from /home/et/.rvm/gems/ruby-1.9.3-preview1@spinach-rails/gems/spinach-0.1.5.2/bin/spinach:10:in `'
from /home/et/.rvm/gems/ruby-1.9.3-preview1@spinach-rails/bin/spinach:19:in `load'
from /home/et/.rvm/gems/ruby-1.9.3-preview1@spinach-rails/bin/spinach:19:in `

'
```