diff options
| author | Jack Nagel | 2014-05-28 14:03:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-28 14:03:06 -0500 |
| commit | 17a27d34649786a9f65e8eef88870e67800b1fed (patch) | |
| tree | 24314a5c68bdc8334057c7dd4e9ed379660f4b65 /Library/Homebrew/cmd | |
| parent | c49e23e77a1682b6ce4203cb0aa26b479993e1ff (diff) | |
| download | brew-17a27d34649786a9f65e8eef88870e67800b1fed.tar.bz2 | |
versions: remove --compact option
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index b634e24a8..af59ccb3a 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -13,16 +13,12 @@ module Homebrew extend self https://github.com/Homebrew/homebrew-versions EOS ARGV.formulae.all? do |f| - if ARGV.include? '--compact' - puts f.versions * " " - else - relative_path = f.pretty_relative_path - f.versions do |version, sha| - print Tty.white.to_s - print "#{version.to_s.ljust(8)} " - print Tty.reset.to_s - puts "git checkout #{sha} #{relative_path}" - end + relative_path = f.pretty_relative_path + f.versions do |version, sha| + print Tty.white.to_s + print "#{version.to_s.ljust(8)} " + print Tty.reset.to_s + puts "git checkout #{sha} #{relative_path}" end end end |
