Sha256: 48c6569f7a8551b26759f15170ab212f603b7296e124a6feefd46216c691fb4c

Contents?: true

Size: 573 Bytes

Versions: 18

Compression:

Stored size: 573 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.puts ImageOptim.full_version
  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

18 entries across 18 versions & 3 rubygems

Version Path
image_optim-0.25.0 bin/image_optim
discourse_image_optim-0.24.5 bin/image_optim
image_optim-0.24.3 bin/image_optim
discourse_image_optim-0.24.4 bin/image_optim
image_optim-0.24.2 bin/image_optim
image_optim-0.24.1 bin/image_optim
image_optim-0.24.0 bin/image_optim
image_optim-0.23.0 bin/image_optim
image_optim-0.22.1 bin/image_optim
image_optim-0.22.0 bin/image_optim
openstreetmap-image_optim-0.21.0.1 bin/image_optim
image_optim-0.21.0 bin/image_optim
image_optim-0.20.2 bin/image_optim
image_optim-0.20.1 bin/image_optim
image_optim-0.20.0 bin/image_optim
image_optim-0.19.1 bin/image_optim
image_optim-0.19.0 bin/image_optim
image_optim-0.18.0 bin/image_optim