Sha256: 15fe79130c9d07076088719d0fa6c2878349da0714662a7e030e1f33d543bf32

Contents?: true

Size: 608 Bytes

Versions: 12

Compression:

Stored size: 608 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8
# frozen_string_literal: true

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

12 entries across 12 versions & 1 rubygems

Version Path
image_optim-0.31.4 bin/image_optim
image_optim-0.31.3 bin/image_optim
image_optim-0.31.2 bin/image_optim
image_optim-0.31.1 bin/image_optim
image_optim-0.31.0 bin/image_optim
image_optim-0.30.0 bin/image_optim
image_optim-0.29.0 bin/image_optim
image_optim-0.28.0 bin/image_optim
image_optim-0.27.1 bin/image_optim
image_optim-0.27.0 bin/image_optim
image_optim-0.26.5 bin/image_optim
image_optim-0.26.4 bin/image_optim