diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 1a42504860..4590bf96c9 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -253,7 +253,7 @@ class FormulaInstaller # list. # # FIXME: - # `ARGV.formulae` probably should be throwing exceptions, it should be + # `ARGV.formulae` probably shouldn't be throwing exceptions, it should be # the caller's responsibility to check `ARGV.formulae.empty?`. return false if ARGV.named.empty? ARGV.formulae.include? f @@ -261,10 +261,14 @@ class FormulaInstaller args = ARGV.clone + # FIXME: Also need to remove `--HEAD`, however there is a problem in that + # the properties of formula objects, such as `prefix`, are influenced by + # `--HEAD` and get set when the object is created. + # + # See issue #8668 %w[ --debug -d --fresh - --HEAD --interactive -i --verbose -v ].each {|flag| args.delete flag} unless explicitly_requested?