aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/--version.rb
blob: 9a571abe17996e452d7925401ca49cbb9543be2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#:  * `--version`:
#:    Print the version number of Homebrew to standard output and exit.

module Homebrew
  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