aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.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/install.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/install.rb')
-rw-r--r--Library/Homebrew/cmd/install.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 779482b7c..5aa198f31 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -4,6 +4,8 @@ require 'blacklist'
module Homebrew extend self
def install
+ raise FormulaUnspecifiedError if ARGV.named.empty?
+
ARGV.named.each do |name|
msg = blacklisted? name
raise "No available formula for #{name}\n#{msg}" if msg