aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/formula.rb
blob: 71687dfa781c132de9fd5dd86f835eef97ed1a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#:  * `formula` <formula>:
#:    Display the path where <formula> is

require "formula"

module Homebrew
  module_function

  def formula
    raise FormulaUnspecifiedError if ARGV.named.empty?
    ARGV.resolved_formulae.each { |f| puts f.path }
  end
end