@MikeMcQuaid requested changes
This commit is contained in:
parent
bbea4ac871
commit
098974b2a1
@ -106,6 +106,7 @@ class BuildOptions
|
||||
@args - @options
|
||||
end
|
||||
|
||||
# @private
|
||||
def invalid_option_names
|
||||
invalid_options.map(&:flag).sort
|
||||
end
|
||||
|
||||
@ -32,7 +32,7 @@ class FormulaInstaller
|
||||
end
|
||||
|
||||
attr_reader :formula
|
||||
attr_accessor :options, :build_bottle, :invalid_opt_names
|
||||
attr_accessor :options, :build_bottle, :invalid_option_names
|
||||
mode_attr_accessor :show_summary_heading, :show_header
|
||||
mode_attr_accessor :build_from_source, :force_bottle
|
||||
mode_attr_accessor :ignore_deps, :only_deps, :interactive, :git
|
||||
@ -52,7 +52,7 @@ class FormulaInstaller
|
||||
@quieter = false
|
||||
@debug = false
|
||||
@options = Options.new
|
||||
@invalid_opt_names = []
|
||||
@invalid_option_names = []
|
||||
|
||||
@@attempted ||= Set.new
|
||||
|
||||
@ -215,8 +215,8 @@ class FormulaInstaller
|
||||
opoo "#{formula.full_name}: #{old_flag} was deprecated; using #{new_flag} instead!"
|
||||
end
|
||||
|
||||
invalid_opt_names.each do |option|
|
||||
opoo "#{formula.full_name}: #{option} is invalid for this formula and will be ignored!"
|
||||
invalid_option_names.each do |option|
|
||||
opoo "#{formula.full_name}: this formula has no #{option} option so it will be ignored!"
|
||||
end
|
||||
|
||||
oh1 "Installing #{Formatter.identifier(formula.full_name)}" if show_header?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user