Make --ignore argiment optional
This commit is contained in:
parent
66d2c4a885
commit
3d61e3db82
|
|
@ -104,7 +104,7 @@ class Unused
|
|||
options[:ignore] = []
|
||||
|
||||
opts.on("-c", "--config=FileName") { |c| options[:config] = c }
|
||||
opts.on("-i", "--ignore=a, b, c", Array) { |i| options[:ignore] += i }
|
||||
opts.on("-i", "--ignore [a, b, c]", Array) { |i| options[:ignore] += i if !i.nil? }
|
||||
|
||||
end.parse!
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue