Sha256: 84302ea3e4172519880e5cbb902280bc1e7e68f09f2c98f7be27341405ea266b
Contents?: true
Size: 516 Bytes
Versions: 29
Compression:
Stored size: 516 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'pathname' $: << File.expand_path('../../lib', Pathname.new(__FILE__).realpath) require 'junoser/squash' command = :squash opts = OptionParser.new do |opts| opts.banner = 'junoser-squash: squash config file.' opts.define_head 'Usage: junoser-squash [path]' opts.on_tail '-h', '--help', 'Show this message' do puts opts exit end end opts.parse! case command when :squash puts Junoser::Squash.new($<).transform else puts opts abort end
Version data entries
29 entries across 29 versions & 1 rubygems