command: fail early if no command is given
Closes Homebrew/homebrew#44450. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
e0f9994542
commit
f629bb4e0f
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user