cmd/help: fix Rubocop warnings.
This commit is contained in:
parent
c8084b1743
commit
d9b8d0f6b1
@ -1,4 +1,4 @@
|
||||
HOMEBREW_HELP = <<-EOS
|
||||
HOMEBREW_HELP = <<-EOS.freeze
|
||||
Example usage:
|
||||
brew search [TEXT|/REGEX/]
|
||||
brew (info|home|options) [FORMULA...]
|
||||
@ -78,11 +78,11 @@ module Homebrew
|
||||
HOMEBREW_HELP
|
||||
else
|
||||
help_lines.map do |line|
|
||||
line.slice(2..-1).
|
||||
sub(/^ \* /, "#{Tty.highlight}brew#{Tty.reset} ").
|
||||
gsub(/`(.*?)`/, "#{Tty.highlight}\\1#{Tty.reset}").
|
||||
gsub(/<(.*?)>/, "#{Tty.em}\\1#{Tty.reset}").
|
||||
gsub("@hide_from_man_page", "")
|
||||
line.slice(2..-1)
|
||||
.sub(/^ \* /, "#{Tty.highlight}brew#{Tty.reset} ")
|
||||
.gsub(/`(.*?)`/, "#{Tty.highlight}\\1#{Tty.reset}")
|
||||
.gsub(/<(.*?)>/, "#{Tty.em}\\1#{Tty.reset}")
|
||||
.gsub("@hide_from_man_page", "")
|
||||
end.join.strip
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user