mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
15 lines
492 B
Ruby
15 lines
492 B
Ruby
#: * `--version`:
|
|
#: Print the version number of Homebrew to standard output and exit.
|
|
|
|
module Homebrew
|
|
module_function
|
|
|
|
def __version
|
|
# As a special case, `--version` is implemented directly in `brew.rb`. This
|
|
# file merely serves as a container for the documentation. It also catches
|
|
# the case where running `brew --version` with additional arguments would
|
|
# produce a rather cryptic message about a non-existent `--version` command.
|
|
raise UsageError
|
|
end
|
|
end
|