Skip to content

Typo in --ignore-gems arg name #3

@jrochkind

Description

@jrochkind

Accidentally requires the command line option to be misspelled ingore

$ 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions