Sha256: 1dbe5b21456f6d0867969bbba4910a1fe2ab1614fd605baa8f4af9e86338249a
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/gh_compare' require 'optparse' options = {} OptionParser.new do |opt| opt.on('--n=NUM', Integer) { |v| options[:num] = v } opt.on('--d==V,V', Array) { |v| options[:commits] = v } opt.parse!(ARGV) end if options[:num] compare = GhCompare::CommitCompare.new puts compare.compare_before(options[:num]) end if options[:commits] compare = GhCompare::CommitCompare.new puts compare.compare_url(options[:commits][0], options[:commits][1]) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gh_compare-0.1.4 | bin/gh_compare |