rm unnecessary description

This commit is contained in:
Douglas Eichelberger 2024-03-30 16:47:21 -07:00
parent 65f8420232
commit 7f78fed676
2 changed files with 1 additions and 3 deletions

View File

@ -7,8 +7,6 @@ require "help"
module Homebrew module Homebrew
module Cmd module Cmd
class HelpCmd < AbstractCommand class HelpCmd < AbstractCommand
cmd_args { description "Print help information." }
sig { override.void } sig { override.void }
def run def run
Help.help Help.help

View File

@ -210,7 +210,7 @@ module Commands
if (cmd_parser = Homebrew::CLI::Parser.from_cmd_path(path)) if (cmd_parser = Homebrew::CLI::Parser.from_cmd_path(path))
if short if short
cmd_parser.description.split(DESCRIPTION_SPLITTING_PATTERN).first cmd_parser.description&.split(DESCRIPTION_SPLITTING_PATTERN)&.first
else else
cmd_parser.description cmd_parser.description
end end