diff options
| author | Max Howell | 2009-09-10 14:29:41 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-10 19:23:03 +0100 |
| commit | a793e3040513f72a5108944a8c3ee1cbfb37ebb2 (patch) | |
| tree | 4b35d76ea59b05799377aa4dca18bf32e759da0a /Library | |
| parent | fdaa267fb92e1652865083e1be11db06e8c94361 (diff) | |
| download | brew-a793e3040513f72a5108944a8c3ee1cbfb37ebb2.tar.bz2 | |
Only allow --interactive with one formula argument
See comments in commit for details.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/ARGV+yeast.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/ARGV+yeast.rb b/Library/Homebrew/ARGV+yeast.rb index e602d7901..007de9f4c 100644 --- a/Library/Homebrew/ARGV+yeast.rb +++ b/Library/Homebrew/ARGV+yeast.rb @@ -66,6 +66,9 @@ module HomebrewArgvExtension def quieter? flag? '--quieter' end + def interactive? + flag? '--interactive' + end def flag? flag options.each do |arg| diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index de5048cc3..875f61be0 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -174,7 +174,7 @@ end def install f f.brew do - if ARGV.flag? '--interactive' + if ARGV.interactive? ohai "Entering interactive mode" puts "Type `exit' to return and finalize the installation" puts "Install to this prefix: #{f.prefix}" |
