Skip to content
Snippets Groups Projects
Commit c4c9c6bc authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1501 from MikeMcQuaid/no-complain-brew-install-args

Don't warn about unused `brew install` arguments.
parents 5294b99d cc3bf7bc
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ class BuildOptions
# @private
def invalid_options
@args - @options
@args - @options - BuildOptions.formula_install_options
end
# @private
......@@ -111,6 +111,12 @@ class BuildOptions
invalid_options.map(&:flag).sort
end
def self.formula_install_options
@formula_install_options ||= ARGV.formula_install_option_names.map do |option_name|
Option.new option_name[2..-1]
end
end
private
def option_defined?(name)
......
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment