lib/jeweler/generator/options.rb in jeweler-0.11.0 vs lib/jeweler/generator/options.rb in jeweler-0.11.1

- old
+ new

@@ -59,10 +59,14 @@ o.on_tail('-h', '--help', 'display this help and exit') do self[:show_help] = true end end - @opts.parse!(args) + begin + @opts.parse!(args) + rescue OptionParser::InvalidOption => e + self[:invalid_argument] = e.message + end end def merge(other) self.class.new(@orig_args + other.orig_args) end