Skip to content
Snippets Groups Projects
Unverified Commit 9e56a862 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #6531 from jpninanjohn/master

Show correct message when invalid arguments are passed to brew
parents 0d068341 ea0150f7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment