diff options
| author | L. E. Segovia | 2017-10-12 00:11:11 -0300 |
|---|---|---|
| committer | L. E. Segovia | 2017-10-12 00:11:11 -0300 |
| commit | d1262868a9073304a244cdf7f582ffd27514c47c (patch) | |
| tree | ba9e55383a0b77986dfa1a81e0bfcf1b81c8ac3c /Library/Homebrew/cask/lib/hbc/cli.rb | |
| parent | 91ab116ace7f4f97d3440190463c93be9ec6d675 (diff) | |
| download | brew-d1262868a9073304a244cdf7f582ffd27514c47c.tar.bz2 | |
Fixes help querying
- If a non-existent command with a flag is queried to Cask, the latter
is printed instead of the command
- If the help from a not-yet-tapped cask's command is queried, it
prints brew tap's help infinitely
Fixes caskroom/homebrew-cask#28977
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index d260be4e3..bd50e41a6 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -231,7 +231,7 @@ module Hbc return if @command == "help" && @args.empty? unknown_command = @args.empty? ? @command : @args.first - raise ArgumentError, "Unknown command: #{unknown_command}" + raise ArgumentError, "Unknown command: #{@command} #{@args.join(" ")}" end def purpose |
