aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cat.rb
diff options
context:
space:
mode:
authorJack Nagel2012-02-04 00:01:29 -0600
committerJack Nagel2012-02-04 00:27:05 -0600
commit1a3a1249bf811c783b8d65b9491b66054a19aa5e (patch)
treef0ee299dea0a44bc10e7cefe58e63aa8988f942e /Library/Homebrew/cmd/cat.rb
parent7ed76725c4c1b4871cb085709f737af52ffd5188 (diff)
downloadbrew-1a3a1249bf811c783b8d65b9491b66054a19aa5e.tar.bz2
Warn the user of required arguments
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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