lib/grog/options.rb in grog-0.0.2 vs lib/grog/options.rb in grog-0.0.3
- old
+ new
@@ -18,9 +18,12 @@
@opts.on("-d", "show datetimes") { @show_datetimes = true }
@opts.on_tail("-h", "--help", "Show this message") do
puts @opts
exit
end
+ @opts.on_tail("--version", "Show the version of the grog gem") do
+ puts "grog v" + `cat VERSION`
+ end
@rest = @opts.parse(argv)
end
end
end