19 lines
370 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-19 21:15:36 +02:00
def run
raise ArgumentError, "#{self.class.command_name} does not take arguments." unless @args.empty?
puts Hbc.full_version
end
def self.help
"displays the Homebrew-Cask version"
end
end
end
end