diff options
| author | Max Nordlund | 2016-04-03 20:17:01 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-04-10 22:59:24 +0200 |
| commit | b21f699ff2f1691c4f10422c640a9d392cf2d7a7 (patch) | |
| tree | e1ddc0886da402bff7bcb0bbef2c9620949929d4 /Library/brew.sh | |
| parent | 32ae71b256089b4f34365eb969a3c8aa3bce52dd (diff) | |
| download | brew-b21f699ff2f1691c4f10422c640a9d392cf2d7a7.tar.bz2 | |
Implement the `brew help` command
This is also used by `brew <cmd> --help`. The basic idea is to have the
documentation as a top level comment in each command file. To find these
comments, they have to be like this `#:`.
This is also used by the `brew man` command to keep the documentation
DRY, and for that there are now a header and footer for the man page.
Diffstat (limited to 'Library/brew.sh')
| -rw-r--r-- | Library/brew.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/brew.sh b/Library/brew.sh index c52b8f966..7f9d141cf 100644 --- a/Library/brew.sh +++ b/Library/brew.sh @@ -176,9 +176,9 @@ case "$HOMEBREW_COMMAND" in --config) HOMEBREW_COMMAND="config";; esac -if [[ -f "$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAND.sh" ]] ; then +if [[ -f "$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAND.sh" ]]; then HOMEBREW_BASH_COMMAND="$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAND.sh" -elif [[ -n "$HOMEBREW_DEVELOPER" && -f "$HOMEBREW_LIBRARY/Homebrew/dev-cmd/$HOMEBREW_COMMAND.sh" ]] ; then +elif [[ -n "$HOMEBREW_DEVELOPER" && -f "$HOMEBREW_LIBRARY/Homebrew/dev-cmd/$HOMEBREW_COMMAND.sh" ]]; then HOMEBREW_BASH_COMMAND="$HOMEBREW_LIBRARY/Homebrew/dev-cmd/$HOMEBREW_COMMAND.sh" fi |
