bin/graph in graph-1.2.0 vs bin/graph in graph-2.0.0

- old
+ new

@@ -1,9 +1,14 @@ -#!/usr/bin/env ruby -w +#!/usr/bin/env ruby -ws +$o ||= false +$d ||= false + type = (ARGV.shift || "macports") require "#{type}_analyzer" klass = Object.const_get "#{type.capitalize}Analyzer" analyzer = klass.new analyzer.run + +system "open #{type.capitalize}Analyzer.#{$d ? "dot" : "png"}" if $o