bin/gem2gv in ruby-graphviz-1.0.8 vs bin/gem2gv in ruby-graphviz-1.0.9

- old
+ new

@@ -94,11 +94,11 @@ puts "-V, --version Show version" puts "-h, --help Show this usage message" end def version - puts "Gem2GraphViz v#{Constants::RGV_VERSION}, (c)2010 Gregoire Lejeune <gregoire.lejeune@free.fr>" + puts "Gem2GraphViz v#{GraphViz::Constants::RGV_VERSION}, (c)2010 Gregoire Lejeune <gregoire.lejeune@free.fr>" puts "" puts "This program is free software; you can redistribute it and/or modify" puts "it under the terms of the GNU General Public License as published by" puts "the Free Software Foundation; either version 2 of the License, or" puts "(at your option) any later version." @@ -115,11 +115,10 @@ xOutFormat = "png" xOutFile = nil xGVPath = "" xUse = "dot" -xStops = [] oOpt = GetoptLong.new( ['--output-format', '-T', GetoptLong::REQUIRED_ARGUMENT], ['--output-file', '-o', GetoptLong::REQUIRED_ARGUMENT], ['--path', '-p', GetoptLong::REQUIRED_ARGUMENT], @@ -145,10 +144,10 @@ when '--version' version( ) exit end end -rescue GetoptLong::InvalidOption => e +rescue GetoptLong::InvalidOption usage( ) exit end xGem = ARGV[0]