lib/git_fogbugz.rb in git-fogbugz-0.1.1 vs lib/git_fogbugz.rb in git-fogbugz-0.1.2
- old
+ new
@@ -99,12 +99,13 @@
opts.on_tail('-q', '--quiet') { @options.quiet = true }
opts.on('-p', '--passthrough', "Output stdin"){ @options.passthrough = true }
opts.on_tail('-h', '--help') { output_version; puts opts; exit 0 }
end
- opts.parse!(@arguments) rescue return false
+ @opts.parse!(@arguments) rescue return false
process_options
+ true
end
# Performs post-parse processing on options
def process_options
@options.verbose = false if @options.quiet
@@ -175,10 +176,10 @@
end
if commit.message =~ /(bugzid|case|issue)[:\s]+(\d+)/i
id = commit.id[0,7]
files = commit.diffs.each do |d|
resp = fogbugz.get(make_url($2, '00000', id, d.a_path))
- #puts resp.body
+ stderr.puts resp.body if @options.verbose
end
end
return
end