aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-06-18 10:33:21 +0100
committerMax Howell2009-06-18 10:34:54 +0100
commitf352880274cc66d396a1b88099e4a5e7cf669928 (patch)
tree802e47e611c3b3570363676de32c1dd2e23a7c0a
parent2097730e406e651da5645ceef8bc0dc25f12799d (diff)
downloadbrew-f352880274cc66d396a1b88099e4a5e7cf669928.tar.bz2
brew install foo --help
Shows the result of ./configure --help
-rwxr-xr-xbin/brew6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index a944d631b..fd57ebc3a 100755
--- a/bin/brew
+++ b/bin/brew
@@ -220,7 +220,11 @@ begin
o.brew do
if ARGV.include? '--interactive'
ohai "Entering interactive mode, type `exit' to return to this shell"
- exec "bash" #TODO why exec?
+ exec "bash" # exec() because system() didn't work :(
+ elsif ARGV.include? '--help'
+ ohai './configure --help'
+ puts `./configure --help`
+ exit
else
o.install
['README','ChangeLog','COPYING','COPYRIGHT','AUTHORS'].each do |file|