diff options
| author | Mike McQuaid | 2016-10-02 08:59:32 +0100 | 
|---|---|---|
| committer | GitHub | 2016-10-02 08:59:32 +0100 | 
| commit | f90f52d90236ca64edf0e979145bbdbd80c165d1 (patch) | |
| tree | 03043f3fd8c23f633ef6a371b53f835c3da945df /Library/Homebrew/cmd/help.rb | |
| parent | a364c981e4b258d94670f4b0450a45b35f85001f (diff) | |
| parent | a4ebda3fc486e03940e4792e7478a41aada98852 (diff) | |
| download | brew-f90f52d90236ca64edf0e979145bbdbd80c165d1.tar.bz2 | |
Merge pull request #1205 from MikeMcQuaid/help-external-commands
help: support `#:` help in external commands.
Diffstat (limited to 'Library/Homebrew/cmd/help.rb')
| -rw-r--r-- | Library/Homebrew/cmd/help.rb | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb index c8845b086..bfcb6838d 100644 --- a/Library/Homebrew/cmd/help.rb +++ b/Library/Homebrew/cmd/help.rb @@ -39,6 +39,8 @@ module Homebrew      if cmd        cmd = HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(cmd, cmd)        path = Commands.path(cmd) +      path ||= which("brew-#{cmd}") +      path ||= which("brew-#{cmd}.rb")      end      # Display command-specific (or generic) help in response to `UsageError`. @@ -61,7 +63,7 @@ module Homebrew        exit 0      end -    # Resume execution in `brew.rb` for external/unknown commands. +    # Resume execution in `brew.rb` for unknown commands.      return if path.nil?      # Display help for internal command (or generic help if undocumented). | 
