23 lines
419 B
Ruby
Raw Normal View History

module Hbc
class CLI
class Version < Base
def self.command_name
"--#{super}"
end
def self.run(*args)
2017-05-19 21:15:36 +02:00
new(*args).run
end
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