From 4f8e3cae5e05c05b3681b3afd2f7ac480c522eb1 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Tue, 19 Apr 2016 03:17:45 +0200 Subject: [PATCH] help: improve styling of generic help text Format the usage examples more consistently (particularly parentheses instead of square brackets where one of several alternatives has to be picked). And add the now much more useful `brew help `. Closes #113. Signed-off-by: Martin Afanasjew --- Library/Homebrew/cmd/help.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb index 7b7919e807..f8524121cd 100644 --- a/Library/Homebrew/cmd/help.rb +++ b/Library/Homebrew/cmd/help.rb @@ -1,18 +1,18 @@ HOMEBREW_HELP = <<-EOS Example usage: - brew [info | home | options ] [FORMULA...] + brew (info|home|options) [FORMULA...] brew install FORMULA... brew uninstall FORMULA... - brew search [foo] + brew search [TEXT|/PATTERN/] brew list [FORMULA...] brew update brew upgrade [FORMULA...] - brew pin/unpin [FORMULA...] + brew (pin|unpin) [FORMULA...] Troubleshooting: brew doctor brew install -vd FORMULA - brew [--env | config] + brew (--env|config) Brewing: brew create [URL [--no-fetch]] @@ -21,6 +21,7 @@ Brewing: Further help: man brew + brew help [COMMAND] brew home EOS