bin/status in update_status-0.1.7 vs bin/status in update_status-0.2.0

- old
+ new

@@ -2,7 +2,15 @@ # coding: utf-8 $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'status' +require 'optparse' -Status::Base.new(*ARGV).update +OptionParser.new do |o| + o.on("-s STATE", "--state", "Status of QA (default pending) [pending/pass]") {|s| $state = s } + o.on("-b BRANCH", "--branch BRANCH", "Branch name") {|b| $branch = b } + o.on("-h", "--help", "Display this screen") {puts o; exit } + o.parse! +end + +Status::Base.new({:state => $state, :branch => $branch}).update \ No newline at end of file