Make --ignore argiment optional

This commit is contained in:
Юрий Сорокин 2019-08-02 18:30:43 +03:00
parent 66d2c4a885
commit 3d61e3db82
1 changed files with 1 additions and 1 deletions

View File

@ -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!