-
- Downloads
brew.rb: improve handling of --version/-v option
Make both `--version` and `-v` print the Homebrew version and exit, if
provided as first and sole argument. `brew --version` no longer accepts
additional arguments (they were previously ignored). Otherwise interpret
`brew -v <arguments>` as if `brew <arguments> -v` was executed instead
(no change here), but no longer print a line with the Homebrew version.
Closes Homebrew/homebrew#46790.
Signed-off-by:
Martin Afanasjew <martin@afanasjew.de>
Please register or sign in to comment