Skip to content

Commit

Permalink
commands: debugging update_shell_completions!
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Cho <michael@michaelcho.dev>
  • Loading branch information
cho-m committed Mar 21, 2024
1 parent 857838a commit 37dbda7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37dbda7

Please sign in to comment.