aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb
index 437b0d72c..b2883334c 100644
--- a/Library/Homebrew/cask/lib/hbc/cli.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli.rb
@@ -230,7 +230,8 @@ module Hbc
return if @command == "help" && @args.empty?
- raise ArgumentError, "Unknown command: #{@command} #{@args.join(" ")}"
+ unknown_command = @command == "help" ? @args.first : @command
+ raise ArgumentError, "Unknown command: #{unknown_command}"
end
def purpose