mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
24 lines
429 B
Ruby
24 lines
429 B
Ruby
module Hbc
|
|
class CLI
|
|
class Version < AbstractCommand
|
|
def self.command_name
|
|
"--#{super}"
|
|
end
|
|
|
|
def initialize(*)
|
|
super
|
|
return if args.empty?
|
|
raise ArgumentError, "#{self.class.command_name} does not take arguments."
|
|
end
|
|
|
|
def run
|
|
puts Hbc.full_version
|
|
end
|
|
|
|
def self.help
|
|
"displays the Homebrew-Cask version"
|
|
end
|
|
end
|
|
end
|
|
end
|