$ bundle grep -h
Usage: bundler-grep [options]
-g, --gems name1[,name2..] select target gems
--ingore-gems name1[,name2..]
ignore grep gems
$ bundle grep --ignore-gems rails foo
Traceback (most recent call last):
6: from /Users/jrochkind/.gem/ruby/2.6.3/bin/bundler-grep:23:in `<main>'
5: from /Users/jrochkind/.gem/ruby/2.6.3/bin/bundler-grep:23:in `load'
4: from /Users/jrochkind/.gem/ruby/2.6.3/gems/bundler-grep-0.3.0/exe/bundler-grep:5:in `<top (required)>'
3: from /Users/jrochkind/.gem/ruby/2.6.3/gems/bundler-grep-0.3.0/lib/bundler/grep.rb:8:in `start!'
2: from /Users/jrochkind/.gem/ruby/2.6.3/gems/bundler-grep-0.3.0/lib/bundler/grep.rb:8:in `new'
1: from /Users/jrochkind/.gem/ruby/2.6.3/gems/bundler-grep-0.3.0/lib/bundler/grep.rb:16:in `initialize'
/Users/jrochkind/.gem/ruby/2.6.3/gems/bundler-grep-0.3.0/lib/bundler/grep.rb:35:in `parse_argument!': invalid option: --ignore-gems (OptionParser::InvalidOption)
$ bundle grep --ingore-gems rails foo
[Works]
Accidentally requires the command line option to be misspelled
ingore