From 37dbda7a61c3c2c6883a919ccb704490f70e8d20 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 21 Mar 2024 15:11:08 -0400 Subject: [PATCH] commands: debugging `update_shell_completions!` Signed-off-by: Michael Cho --- Library/Homebrew/commands.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/commands.rb b/Library/Homebrew/commands.rb index d44418a0ce373..932b280a6d611 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