Permalink
Browse files

support stdout for @Stantheman

  • Loading branch information...
akerl committed Sep 3, 2014
1 parent 9f263ee commit d99e6a465e445786a232607e4ae87b250ee81012
Showing with 5 additions and 2 deletions.
  1. +5 −2 bin/githubchart
@@ -42,8 +42,11 @@ OptionParser.new do |opts|
end.parse!
SVG_Path = ARGV.shift
fail 'Please provide the target location for the SVG' if SVG_Path.nil?
Chart = GithubChart.new(options).svg
File.open(SVG_Path, 'w') { |file| file << Chart }
if SVG_Path.nil?
puts Chart
else
File.open(SVG_Path, 'w') { |file| file << Chart }
end

0 comments on commit d99e6a4

Please sign in to comment.