aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-10-01 18:25:16 +0100
committerMike McQuaid2016-10-01 18:25:16 +0100
commita4ebda3fc486e03940e4792e7478a41aada98852 (patch)
tree2b8d54a451a9e4b8481009c7fd47b844b6673e8b /Library/Homebrew/brew.rb
parentcc59e624b05dbe227387c2f359deef6bfade3eb2 (diff)
downloadbrew-a4ebda3fc486e03940e4792e7478a41aada98852.tar.bz2
help: support `#:` help in external commands.
Fixes https://github.com/Homebrew/homebrew-test-bot/issues/3
Diffstat (limited to 'Library/Homebrew/brew.rb')
-rw-r--r--Library/Homebrew/brew.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb
index 1ba3fb8c2..f961a82f6 100644
--- a/Library/Homebrew/brew.rb
+++ b/Library/Homebrew/brew.rb
@@ -75,12 +75,9 @@ begin
end
# Usage instructions should be displayed if and only if one of:
- # - a help flag is passed AND an internal command is matched
+ # - a help flag is passed AND a command is matched
# - a help flag is passed AND there is no command specified
# - no arguments are passed
- #
- # It should never affect external commands so they can handle usage
- # arguments themselves.
if empty_argv || help_flag
require "cmd/help"
Homebrew.help cmd, empty_argv: empty_argv