Sha256: 7f111da5ab1f7f1f65f293ef496f7afae66ceaa0f30f8dce5bb5e769da8549a5

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 Bytes

Contents

#!/usr/bin/env ruby

require 'bcupgrade'
require 'optparse'
require 'readline'

OptionParser.new do |opt|
  begin
    options = {}
    opt.on('-d', '--dry-run', 'Show output without running') do |v|
      options[:dry_run] = v
    end
    opt.on('-r', '--remove', 'Remove previous version casks with installing') do |v|
      options[:remove] = v
    end
    opt.on('-y', '--yes', 'Install cask without prompt') do |v|
      options[:install] = v
    end
    opt.on('-v', '--version', 'Show version number') do
      puts Bcupgrade::VERSION
      exit
    end

    args = opt.parse!(ARGV)

    Bcupgrade.run(options, args)
  rescue => e
    puts e.to_s
    exit
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcupgrade-0.3.0 exe/bcupgrade