Skip to content
Snippets Groups Projects
Unverified Commit d7ee5412 authored by Xu Cheng's avatar Xu Cheng
Browse files

reinstall: handle new options


Since we are loading options as Formula#build from tab, we will have to explicitly read
options from ARGV as well.

Fixes #3066.

Closes #537.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 820b6347
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ module Homebrew
end
def reinstall_formula(f)
options = f.build.used_options
options = BuildOptions.new(Options.create(ARGV.flags_only), f.options).used_options
options |= f.build.used_options
notice = "Reinstalling #{f.full_name}"
notice += " with #{options * ", "}" unless options.empty?
......
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