diff --git a/Library/Homebrew/commands.rb b/Library/Homebrew/commands.rb index d44418a0ce373f..932b280a6d6118 100644 --- a/Library/Homebrew/commands.rb +++ b/Library/Homebrew/commands.rb @@ -206,6 +206,8 @@ def self.command_description(command, short: false) return if path.blank? if (cmd_parser = Homebrew::CLI::Parser.from_cmd_path(path)) + raise "#{path}\n#{cmd_parser.pretty_inspect}" if cmd_parser.description.nil? + if short cmd_parser.description.split(DESCRIPTION_SPLITTING_PATTERN).first else