Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

brew.rb: improve handling of --version/-v option #46790

Closed
wants to merge 1 commit into from
Closed

brew.rb: improve handling of --version/-v option #46790

wants to merge 1 commit into from

Conversation

UniqMartin
Copy link
Contributor

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.

See #46387 for discussion leading to this PR.

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.
@UniqMartin UniqMartin changed the title brew.rb: improve handling of --verbose/-v option brew.rb: improve handling of --version/-v option Dec 8, 2015
@MikeMcQuaid
Copy link
Member

👍 :shipit:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants