diff options
| author | Adam Vandenberg | 2012-07-23 14:27:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-07-23 14:27:50 -0700 |
| commit | 7a7e3b5f7c81c43dd9dcec1574ce285082ee08ce (patch) | |
| tree | 8e19df17f43356c6bbcdfd078347d65f2fc1201c /bin | |
| parent | ad32b663e8d064cd81e4b654880d746af85991a5 (diff) | |
| download | brew-7a7e3b5f7c81c43dd9dcec1574ce285082ee08ce.tar.bz2 | |
Make --version/--verbose slightly less confusing.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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' |
