cli/parser: tweak formatting.
This commit is contained in:
parent
0fac6e262e
commit
736dade71d
@ -155,7 +155,8 @@ module Homebrew
|
||||
end
|
||||
|
||||
def generate_help_text
|
||||
@parser.to_s.sub(/^/, "#{Tty.bold}Usage: brew#{Tty.reset} ")
|
||||
@parser.to_s
|
||||
.sub(/^/, "#{Tty.bold}Usage: brew#{Tty.reset} ")
|
||||
.gsub(/`(.*?)`/m, "#{Tty.bold}\\1#{Tty.reset}")
|
||||
.gsub(%r{<([^\s]+?://[^\s]+?)>}) { |url| Formatter.url(url) }
|
||||
.gsub(/<(.*?)>/m, "#{Tty.underline}\\1#{Tty.reset}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user