aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/cat.rb')
-rw-r--r--Library/Homebrew/cmd/cat.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/cat.rb b/Library/Homebrew/cmd/cat.rb
index a87eba61e..ddd66922a 100644
--- a/Library/Homebrew/cmd/cat.rb
+++ b/Library/Homebrew/cmd/cat.rb
@@ -4,6 +4,7 @@ module Homebrew extend self
# 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