rm unnecessary description
This commit is contained in:
parent
65f8420232
commit
7f78fed676
@ -7,8 +7,6 @@ require "help"
|
||||
module Homebrew
|
||||
module Cmd
|
||||
class HelpCmd < AbstractCommand
|
||||
cmd_args { description "Print help information." }
|
||||
|
||||
sig { override.void }
|
||||
def run
|
||||
Help.help
|
||||
|
@ -210,7 +210,7 @@ module Commands
|
||||
|
||||
if (cmd_parser = Homebrew::CLI::Parser.from_cmd_path(path))
|
||||
if short
|
||||
cmd_parser.description.split(DESCRIPTION_SPLITTING_PATTERN).first
|
||||
cmd_parser.description&.split(DESCRIPTION_SPLITTING_PATTERN)&.first
|
||||
else
|
||||
cmd_parser.description
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user