help: show help text for tapped external command

Previously, running e.g. `brew help bundle` when homebrew-bundle was not
tapped would tap homebrew-bundle and then run `brew bundle` showing
`Error: No Brewfile found` instead of the expected help text.
This commit is contained in:
Rylan Polster 2020-09-08 12:10:28 -04:00
parent 6d1de3a72b
commit 5b393cb049

View File

@ -143,6 +143,7 @@ begin
safe_system(*tap_commands)
end
ARGV << "--help" if help_flag
exec HOMEBREW_BREW_FILE, cmd, *ARGV
end
rescue UsageError => e