aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2016-11-14 09:28:28 +0000
committerMike McQuaid2016-11-14 09:28:28 +0000
commitcc3bf7bcb58f2d794dfa8981ea488c55ea415164 (patch)
tree9d18300cdfbc0516e2ff94201f19d7f0abe50d7c /Library/Homebrew/extend
parent5294b99d6fa28b972ee4d695bda438bbf9e18647 (diff)
downloadbrew-cc3bf7bcb58f2d794dfa8981ea488c55ea415164.tar.bz2
Don't warn about unused `brew install` arguments.
This is a step closer to better argument handling but for now just fixes the issue in #1217 where it starts complaining about options like `--build-from-source` being used.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ARGV.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index bd60cbecc..3e4e7f5c7 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -1,4 +1,29 @@
module HomebrewArgvExtension
+ def formula_install_option_names
+ %w[
+ --debug
+ --env=
+ --ignore-dependencies
+ --cc=
+ --build-from-source
+ --devel
+ --HEAD
+ --keep-tmp
+ --interactive
+ --git
+ --sandbox
+ --no-sandbox
+ --build-bottle
+ --force-bottle
+ --verbose
+ -i
+ -v
+ -d
+ -g
+ -s
+ ].freeze
+ end
+
def named
@named ||= self - options_only
end