Fix cli matchers to only include actual matcher objects
This commit is contained in:
parent
10321549cd
commit
c00d39d855
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ module Mutant
|
||||||
def dispatch_matcher
|
def dispatch_matcher
|
||||||
argument = current_argument
|
argument = current_argument
|
||||||
consume(1)
|
consume(1)
|
||||||
@matchers << Classifier.build(argument)
|
matcher = Classifier.build(argument)
|
||||||
|
@matchers << matcher if matcher
|
||||||
end
|
end
|
||||||
|
|
||||||
# Process option argument
|
# Process option argument
|
||||||
|
|
Loading…
Reference in a new issue