24 lines
429 B
Ruby
Raw Normal View History

module Hbc
class CLI
2017-05-20 19:08:03 +02:00
class Version < AbstractCommand
def self.command_name
"--#{super}"
end
2017-05-21 00:15:56 +02:00
def initialize(*)
super
return if args.empty?
raise ArgumentError, "#{self.class.command_name} does not take arguments."
end
2017-05-19 21:15:36 +02:00
def run
puts Hbc.full_version
end
def self.help
"displays the Homebrew-Cask version"
end
end
end
end