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 <command>`.

Closes #113.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
Martin Afanasjew 2016-04-19 03:17:45 +02:00
parent 312fdaa892
commit 4f8e3cae5e

View File

@ -1,18 +1,18 @@
HOMEBREW_HELP = <<-EOS HOMEBREW_HELP = <<-EOS
Example usage: Example usage:
brew [info | home | options ] [FORMULA...] brew (info|home|options) [FORMULA...]
brew install FORMULA... brew install FORMULA...
brew uninstall FORMULA... brew uninstall FORMULA...
brew search [foo] brew search [TEXT|/PATTERN/]
brew list [FORMULA...] brew list [FORMULA...]
brew update brew update
brew upgrade [FORMULA...] brew upgrade [FORMULA...]
brew pin/unpin [FORMULA...] brew (pin|unpin) [FORMULA...]
Troubleshooting: Troubleshooting:
brew doctor brew doctor
brew install -vd FORMULA brew install -vd FORMULA
brew [--env | config] brew (--env|config)
Brewing: Brewing:
brew create [URL [--no-fetch]] brew create [URL [--no-fetch]]
@ -21,6 +21,7 @@ Brewing:
Further help: Further help:
man brew man brew
brew help [COMMAND]
brew home brew home
EOS EOS