diff options
| author | Martin Afanasjew | 2016-01-21 16:51:45 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2016-02-11 13:15:37 +0100 |
| commit | 70ec2a7875da86b0355ba31cd64b2521871781a0 (patch) | |
| tree | 74d54508e6e37a2de1ea41ee2a65d14d6c464c06 /Library | |
| parent | e6f946d24ee805e519f8ae92fdc4564c74bc444f (diff) | |
| download | brew-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.sh | 2 | ||||
| -rw-r--r-- | 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 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? |
