Sha256: a23e59099e662383e022914ecf4079ff793857bb42141410121b3a885b431d29
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require 'image_optim/runner' require 'image_optim/runner/option_parser' args = ARGV.dup options = ImageOptim::Runner::OptionParser.parse!(args) begin if options[:verbose] $stderr << "#{ImageOptim.full_version}\n" end only_info = options.delete(:only_info) runner = ImageOptim::Runner.new(options) unless only_info abort 'specify paths to optimize' if args.empty? abort unless runner.run!(args) end rescue => e if options[:verbose] abort "#{e}\n#{e.backtrace.join("\n")}" else abort e.to_s end end
Version data entries
6 entries across 6 versions & 2 rubygems