brew/Library/Homebrew/cask/cmd/--version.rb

24 lines
429 B
Ruby
Raw Normal View History

module Hbc
2018-09-04 08:45:48 +01:00
class Cmd
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
2018-09-03 20:12:29 +01:00
"displays the Homebrew Cask version"
end
end
end
end