diff options
| author | Xu Cheng | 2016-04-11 21:47:08 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-04-12 14:29:49 +0800 |
| commit | af1eb007e2cb251692fed609b517e6aba987119d (patch) | |
| tree | b719a191b4a2e7b99cce0ee7c9d7eaf9e54f9246 /Library/Homebrew | |
| parent | 496fff643f352b0943095e2b96dbc5e0f565db61 (diff) | |
| download | brew-af1eb007e2cb251692fed609b517e6aba987119d.tar.bz2 | |
help: handle alias
Before this fix
```
$ brew --help ls
Error: Unknown command: ls
```
After this fix
```
$ brew --help ls
brew list, ls
<snip>
```
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/help.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb index 76eef90a8..449d44d46 100644 --- a/Library/Homebrew/cmd/help.rb +++ b/Library/Homebrew/cmd/help.rb @@ -41,6 +41,7 @@ module Homebrew end def help_for_command(cmd) + cmd = HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(cmd, cmd) cmd_path = if File.exist?(HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh") HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh" elsif ARGV.homebrew_developer? && File.exist?(HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.sh") |
