help: tweak structure/formatting.
This commit is contained in:
parent
736dade71d
commit
cd423a2755
@ -93,11 +93,13 @@ module Homebrew
|
|||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Otherwise read #: lines from the file.
|
||||||
help_lines = command_help_lines(path)
|
help_lines = command_help_lines(path)
|
||||||
if help_lines.empty?
|
if help_lines.blank?
|
||||||
opoo "No help text in: #{path}" if ARGV.homebrew_developer?
|
opoo "No help text in: #{path}" if ARGV.homebrew_developer?
|
||||||
HOMEBREW_HELP
|
return HOMEBREW_HELP
|
||||||
else
|
end
|
||||||
|
|
||||||
Formatter.wrap(help_lines.join.gsub(/^ /, ""), COMMAND_DESC_WIDTH)
|
Formatter.wrap(help_lines.join.gsub(/^ /, ""), COMMAND_DESC_WIDTH)
|
||||||
.sub("@hide_from_man_page ", "")
|
.sub("@hide_from_man_page ", "")
|
||||||
.sub(/^\* /, "#{Tty.bold}Usage: brew#{Tty.reset} ")
|
.sub(/^\* /, "#{Tty.bold}Usage: brew#{Tty.reset} ")
|
||||||
@ -108,4 +110,3 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user