mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
14 lines
325 B
Ruby
14 lines
325 B
Ruby
#: * `--version`:
|
|
#: Print the version number of Homebrew to standard output and exit.
|
|
|
|
module Homebrew
|
|
module_function
|
|
|
|
def __version
|
|
odie "This command does not take arguments." if ARGV.any?
|
|
|
|
puts "Homebrew #{HOMEBREW_VERSION}"
|
|
puts "Homebrew/homebrew-core #{CoreTap.instance.version_string}"
|
|
end
|
|
end
|