aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-21 16:51:45 +0100
committerMartin Afanasjew2016-02-11 13:15:37 +0100
commit70ec2a7875da86b0355ba31cd64b2521871781a0 (patch)
tree74d54508e6e37a2de1ea41ee2a65d14d6c464c06 /Library
parente6f946d24ee805e519f8ae92fdc4564c74bc444f (diff)
downloadbrew-70ec2a7875da86b0355ba31cd64b2521871781a0.tar.bz2
ARGV: stop supporting --homebrew-developer option
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/homebrew#48322. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/brew_bash_completion.sh2
-rw-r--r--Library/Homebrew/extend/ARGV.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index 73910090e..d9ad1c9cd 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -475,7 +475,7 @@ _brew_style ()
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
- __brewcomp "--fix --homebrew-developer"
+ __brewcomp "--fix"
return
;;
esac
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 9491883fc..b8cfdf9fa 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -125,7 +125,7 @@ module HomebrewArgvExtension
end
def homebrew_developer?
- include?("--homebrew-developer") || !ENV["HOMEBREW_DEVELOPER"].nil?
+ !ENV["HOMEBREW_DEVELOPER"].nil?
end
def sandbox?