bin/image_optim in image_optim-0.12.1 vs bin/image_optim in image_optim-0.13.0

- old
+ new

@@ -7,11 +7,11 @@ option_parser = OptionParser.new do |op| op.accept(ImageOptim::TrueFalseNil, OptionParser.top.atype[TrueClass][0].merge('nil' => nil)){ |arg, val| val } op.banner = <<-TEXT.gsub(/^\s*\|/, '') - |#{op.program_name} v#{ImageOptim.version} + |#{ImageOptim.full_version} | |Usege: | #{op.program_name} [options] image_path … | |Configuration will be read and prepanded to options from two paths: @@ -101,9 +101,10 @@ if args == %w[-v] args = %w[--version] end option_parser.parse!(args) + $stderr.puts ImageOptim.full_version if options[:verbose] ImageOptim::Runner.run!(args, options) or exit 1 rescue OptionParser::ParseError => e abort "#{e.to_s}\n\n#{option_parser.help}" rescue => e if options[:verbose]