bin/validate in schematron-0.0.0 vs bin/validate in schematron-0.0.1
- old
+ new
@@ -1,15 +1,14 @@
#!/usr/bin/ruby
+require 'optparse'
require 'libxml'
require 'schematron'
include LibXML
-if ARGV.size != 2
- $stderr.puts "usage: validate [schematron] [instance]"
- exit 1
-end
+
+puts "Usage: validate [schematron] [instance]" if ARGV.size != 2
# use the line numbers
XML.default_line_numbers = true
# Get sch and xml from command line