bin/hc in hieracles-0.0.6 vs bin/hc in hieracles-0.1.0
- old
+ new
@@ -4,9 +4,14 @@
require 'hieracles'
opt = Hieracles::Optparse.new(ARGV)
+if opt.options.has_key? :version
+ puts Hieracles.version
+ exit(0)
+end
+
fqdn = opt.payload[0]
command = opt.payload[1]
args = opt.payload[2..-1]
unless fqdn && command