From cc3bf7bcb58f2d794dfa8981ea488c55ea415164 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 14 Nov 2016 09:28:28 +0000 Subject: 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. --- Library/Homebrew/extend/ARGV.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Library/Homebrew/extend') 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 -- cgit v1.2.3