16 lines
288 B
Ruby
Raw Normal View History

2017-02-07 23:25:02 -08:00
#: * `where` <formulae>:
#: echo location of the specified <formulae> to stdout
require "formula"
module Homebrew
module_function
def where
raise FormulaUnspecifiedError if ARGV.named.empty?
ARGV.resolved_formulae.each do |f|
puts "#{f.path}\n"
end
end
end