Skip to content

Commit

Permalink
ARGV: stop supporting --homebrew-developer option
Browse files Browse the repository at this point in the history
Homebrew developers have the corresponding variable permanently set in
their environment and wanting to appear like a Homebrew developer for a
single invocation is exceedingly rare. Additionally, the option won't be
recognized by `bin/brew`. (It is also undocumented.)

Using `HOMEBREW_DEVELOPER=1 brew <command>` is still possible, and not
more inconvenient than passing the `--homebrew-developer` option.

Closes Homebrew#48322.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
  • Loading branch information
UniqMartin committed Feb 11, 2016
1 parent 8a5303c commit 5b9ee43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Contributions/brew_bash_completion.sh
Expand Up @@ -475,7 +475,7 @@ _brew_style ()
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
__brewcomp "--fix --homebrew-developer"
__brewcomp "--fix"
return
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/ARGV.rb
Expand Up @@ -125,7 +125,7 @@ def git?
end

def homebrew_developer?
include?("--homebrew-developer") || !ENV["HOMEBREW_DEVELOPER"].nil?
!ENV["HOMEBREW_DEVELOPER"].nil?
end

def sandbox?
Expand Down

0 comments on commit 5b9ee43

Please sign in to comment.