lib/koma/cli.rb in koma-0.7.2 vs lib/koma/cli.rb in koma-0.7.3
- old
+ new
@@ -68,9 +68,18 @@
key += ' (disabled)' if Koma::HostInventory.disabled_keys.include?(key)
puts key
end
end
+ option :version, type: :boolean, aliases: :v
+ def help(version = nil)
+ if version
+ puts Koma::VERSION
+ else
+ super
+ end
+ end
+
def method_missing(command)
message = <<-EOH
(( ))
(( _____ ))