From 5b9ee43775e382e4cafc52d1005f1788e7df5712 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Thu, 21 Jan 2016 16:51:45 +0100 Subject: [PATCH] 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 ` is still possible, and not more inconvenient than passing the `--homebrew-developer` option. Closes #48322. Signed-off-by: Martin Afanasjew --- Library/Contributions/brew_bash_completion.sh | 2 +- Library/Homebrew/extend/ARGV.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 73910090e4b4..d9ad1c9cd8ce 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 9491883fc756..b8cfdf9fa6bc 100644 --- a/Library/Homebrew/extend/ARGV.rb +++ b/Library/Homebrew/extend/ARGV.rb @@ -125,7 +125,7 @@ def git? end def homebrew_developer? - include?("--homebrew-developer") || !ENV["HOMEBREW_DEVELOPER"].nil? + !ENV["HOMEBREW_DEVELOPER"].nil? end def sandbox?