lib/jazrb/options.rb in smparkes-jazrb-0.0.8 vs lib/jazrb/options.rb in smparkes-jazrb-0.0.9

- old
+ new

@@ -1,18 +1,21 @@ require 'optparse' $jazrb_verbose = false $jazrb_xml = false +$jazrb_deps = nil -parser = OptionParser.new do |o| +OptionParser.new do |o| o.on("-v","--verbose") do $jazrb_verbose = true end o.on("-x","--xml") do $jazrb_xml = true end -end + o.on("--deps PATH") do |path| + $jazrb_deps = path + end -$jazrb_args = parser.parse ARGV +end.parse!