aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/desc.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/desc.rb b/Library/Homebrew/cmd/desc.rb
index dab18fc91..df228d643 100644
--- a/Library/Homebrew/cmd/desc.rb
+++ b/Library/Homebrew/cmd/desc.rb
@@ -10,7 +10,10 @@ module Homebrew
if search_type.empty?
raise FormulaUnspecifiedError if ARGV.named.empty?
- Descriptions.named(ARGV.formulae.map(&:full_name)).print
+ desc = {}
+ ARGV.formulae.each { |f| desc[f.full_name] = f.desc }
+ results = Descriptions.new(desc)
+ results.print
elsif search_type.size > 1
odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--description."
else