bin/hld in haxor-0.1.0 vs bin/hld in haxor-0.2.0
- old
+ new
@@ -17,9 +17,14 @@
opts.on_tail('-h', '--help', 'Show this message') do
puts opts
exit
end
+
+ opts.on_tail('-v', '--version', 'Show version') do
+ puts "Haxor, version #{Haxor::Consts::GEM_VERSION}, version id #{Haxor::Consts::VERSION}."
+ exit
+ end
end
parser.parse!
unless options.key?(:output) && !ARGV.empty?