aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/formula.rb
diff options
context:
space:
mode:
authorTimothee Cour2017-02-11 16:37:41 -0800
committerTimothee Cour2017-02-11 16:38:06 -0800
commit0d715f90ea0e9b84231ce2221709f2134ee0ae31 (patch)
tree6aa144e4a5c113dc0a5dedd55bba5c53dba548a7 /Library/Homebrew/dev-cmd/formula.rb
parentde16dcc1ade56878cae04cf26bdaa465730c28d8 (diff)
downloadbrew-0d715f90ea0e9b84231ce2221709f2134ee0ae31.tar.bz2
applied changes suggested in PR
Diffstat (limited to 'Library/Homebrew/dev-cmd/formula.rb')
-rw-r--r--Library/Homebrew/dev-cmd/formula.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/dev-cmd/formula.rb b/Library/Homebrew/dev-cmd/formula.rb
index 80008a354..71687dfa7 100644
--- a/Library/Homebrew/dev-cmd/formula.rb
+++ b/Library/Homebrew/dev-cmd/formula.rb
@@ -1,5 +1,5 @@
-#: * `formula` <formulae>:
-#: echo location of the specified <formulae> to stdout
+#: * `formula` <formula>:
+#: Display the path where <formula> is
require "formula"
@@ -8,8 +8,6 @@ module Homebrew
def formula
raise FormulaUnspecifiedError if ARGV.named.empty?
- ARGV.resolved_formulae.each do |f|
- puts "#{f.path}\n"
- end
+ ARGV.resolved_formulae.each { |f| puts f.path }
end
end