aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cat.rb
blob: ddd66922a6b7f3d66c9320c82031da4c0fe13ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
module Homebrew extend self
  def cat
    # do not "fix" this to support multiple arguments, the output would be
    # unparsable, if the user wants to cat multiple formula they can call
    # brew cat multiple times.

    raise FormulaUnspecifiedError if ARGV.named.empty?
    cd HOMEBREW_REPOSITORY
    exec "cat", ARGV.formulae.first.path, *ARGV.options_only
  end
end