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>
This commit is contained in:
parent
e6f946d24e
commit
70ec2a7875
@ -475,7 +475,7 @@ _brew_style ()
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "$cur" in
|
||||
--*)
|
||||
__brewcomp "--fix --homebrew-developer"
|
||||
__brewcomp "--fix"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -125,7 +125,7 @@ module HomebrewArgvExtension
|
||||
end
|
||||
|
||||
def homebrew_developer?
|
||||
include?("--homebrew-developer") || !ENV["HOMEBREW_DEVELOPER"].nil?
|
||||
!ENV["HOMEBREW_DEVELOPER"].nil?
|
||||
end
|
||||
|
||||
def sandbox?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user