From 4c91ca06dbe2c8e716e1e38231596da82530326b Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Tue, 4 Feb 2020 15:48:36 +1100 Subject: [PATCH] Add `--interactive` to `brew reinstall` More often than I realised, I want to `brew reinstall --build-from-source --interactive $FORMULA` to add some custom configuration. It seems like a useful addition? --- Library/Homebrew/cmd/reinstall.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index 6b0f6ea588..e622c52308 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -26,6 +26,10 @@ module Homebrew "or a shell inside the temporary build directory." switch "-s", "--build-from-source", description: "Compile from source even if a bottle is available." + switch "-i", "--interactive", + description: "Download and patch , then open a shell. This allows the user to "\ + "run `./configure --help` and otherwise determine how to turn the software "\ + "package into a Homebrew package." switch "--force-bottle", description: "Install from a bottle if it exists for the current or newest version of "\ "macOS, even if it would not normally be used for installation."