bin/image_optim in image_optim-0.14.0 vs bin/image_optim in image_optim-0.15.0
- old
+ new
@@ -1,14 +1,17 @@
#!/usr/bin/env ruby
# encoding: UTF-8
require 'image_optim/runner'
+require 'image_optim/true_false_nil'
+require 'image_optim/non_negative_integer_range'
options = {}
option_parser = OptionParser.new do |op|
ImageOptim::TrueFalseNil.add_to_option_parser(op)
+ ImageOptim::NonNegativeIntegerRange.add_to_option_parser(op)
op.banner = <<-TEXT.gsub(/^\s*\|/, '')
|#{ImageOptim.full_version}
|
|Usege:
@@ -63,9 +66,11 @@
[type, 'B']
when Integer >= type
[Integer, 'N']
when Array >= type
[Array, 'a,b,c']
+ when ImageOptim::NonNegativeIntegerRange == type
+ [type, 'M-N']
else
fail "Unknown type #{type}"
end
description_lines = %W[