docs: fix comment help output
This commit is contained in:
parent
adbc50f151
commit
e62137133e
@ -103,7 +103,7 @@ module Homebrew
|
||||
help_lines = command_help_lines(path)
|
||||
return if help_lines.blank?
|
||||
|
||||
Formatter.wrap(help_lines.join.delete_prefix(" "), COMMAND_DESC_WIDTH)
|
||||
Formatter.wrap(help_lines.join, COMMAND_DESC_WIDTH)
|
||||
.sub("@hide_from_man_page ", "")
|
||||
.sub(/^\* /, "#{Tty.bold}Usage: brew#{Tty.reset} ")
|
||||
.gsub(/`(.*?)`/m, "#{Tty.bold}\\1#{Tty.reset}")
|
||||
|
||||
@ -497,7 +497,7 @@ module Kernel
|
||||
path.read
|
||||
.lines
|
||||
.grep(/^#:/)
|
||||
.map { |line| line.slice(2..-1) }
|
||||
.map { |line| line.slice(2..-1).delete_prefix(" ") }
|
||||
end
|
||||
|
||||
def redact_secrets(input, secrets)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user