From f629bb4e0f5fe03926642ef06107e0101f4c9bcc Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 29 Sep 2015 15:39:08 +0200 Subject: [PATCH] command: fail early if no command is given Closes Homebrew/homebrew#44450. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/cmd/command.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cmd/command.rb b/Library/Homebrew/cmd/command.rb index 6ddd898be3..4790a69524 100644 --- a/Library/Homebrew/cmd/command.rb +++ b/Library/Homebrew/cmd/command.rb @@ -1,5 +1,6 @@ module Homebrew def command + abort "This command requires a command argument" if ARGV.empty? cmd = ARGV.first cmd = HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(cmd, cmd)