#!/usr/bin/env ruby # # Copyright (c) 2009-present. GPL3. # Author: Zhang Jinzhu $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib")) require "grb" # easy debugger if ARGV.delete('--debug') ['rubygems','ruby-debug'].each {|x| require x} else def debugger;end end abort('Version: ' + File.read(File.expand_path("../../VERSION",__FILE__))) if ARGV.delete('--version') || ARGV.delete('-v') EXPLAIN = ARGV.delete('--explain') || ARGV.delete('-e') opt = { :command => ARGV[0] || 'push', :branch => branch = (ARGV[1] || Grb.get_current_branch), :branch_ => ARGV[2] || branch, } Grb.parse(opt)