aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2012-07-23 14:27:50 -0700
committerAdam Vandenberg2012-07-23 14:27:50 -0700
commit7e034092332d25ad83bd6d87e55c5f05a6d0d403 (patch)
treeed01bf506288dcf47531caec1a81f4df33e4d55f /bin
parent6445e2974dd46aea5be697e23567a5b76d86bade (diff)
downloadhomebrew-7e034092332d25ad83bd6d87e55c5f05a6d0d403.tar.bz2
Make --version/--verbose slightly less confusing.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew13
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/brew b/bin/brew
index 51e019e1c..f0b548763 100755
--- a/bin/brew
+++ b/bin/brew
@@ -17,14 +17,11 @@ when '--version'
puts HOMEBREW_VERSION
exit 0
when '-v'
- if ARGV.length > 1
- puts "Homebrew #{HOMEBREW_VERSION}"
- # continue in verbose mode
- ARGV << ARGV.shift
- else
- puts HOMEBREW_VERSION
- exit 0
- end
+ puts "Homebrew #{HOMEBREW_VERSION}"
+ # Shift the -v to the end of the parameter list
+ ARGV << ARGV.shift
+ # If no other arguments, just quit here.
+ exit 0 if ARGV.length == 1
end
case HOMEBREW_PREFIX.to_s when '/', '/usr'