rm unnecessary description
This commit is contained in:
parent
65f8420232
commit
7f78fed676
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user