bin/xml2gv in ruby-graphviz-1.0.7 vs bin/xml2gv in ruby-graphviz-1.0.8
- old
+ new
@@ -1,27 +1,27 @@
#!/usr/bin/env ruby
# Copyright (C) 2005 - 2012 Gregoire Lejeune <gregoire.lejeune@free.fr>
-#
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
require 'rubygems'
require 'getoptlong'
require 'graphviz/xml'
-def usage
+def usage
puts "usage: xml2gv [-Tformat] [-ofile] [-h] [-V] script"
puts "-T, --output-format format Output format (default: PNG)"
puts "-o, --output-file file Output file (default: STDOUT)"
puts "-p, --path Graphviz path"
puts "-u, --use PROGRAM Program to use (default: dot)"
@@ -85,10 +85,10 @@
exit
end
xFile = ARGV[0]
-if xFile.nil? == true
+if xFile.nil?
usage( )
exit
end
gvxml = GraphViz::XML::new( xFile, :text => true, :attrs => true )