blob: 736048341cb21b56a51dfcd8052cfc7d16e189e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#: * `--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
|