Merge pull request #6531 from jpninanjohn/master
Show correct message when invalid arguments are passed to brew
This commit is contained in:
commit
9e56a8625d
@ -221,9 +221,14 @@ module Cask
|
||||
usage
|
||||
|
||||
return if @command.nil?
|
||||
return if @command == "help" && @args.empty?
|
||||
|
||||
raise ArgumentError, "help does not take arguments."
|
||||
if @command == "help"
|
||||
return if @args.empty?
|
||||
|
||||
raise ArgumentError, "help does not take arguments." if @args.length
|
||||
end
|
||||
|
||||
raise ArgumentError, "Unknown Cask command: #{command}"
|
||||
end
|
||||
|
||||
def purpose
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user