aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-06-26 09:24:07 +0100
committerMike McQuaid2014-06-26 09:24:07 +0100
commite78af95baf266d10cdb5cc087fec380268397d7a (patch)
tree367b97b846ab0a514744cfa2e6f7e8f4975f5a78 /Library
parent8cae4ac478721ff93d2e8fac553997885528db87 (diff)
downloadhomebrew-e78af95baf266d10cdb5cc087fec380268397d7a.tar.bz2
brew: guard --help with nil cmd.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/brew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index e2f2f153e..3a9eccbbe 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -110,7 +110,7 @@ begin
# Add contributed commands to PATH before checking.
ENV['PATH'] += "#{File::PATH_SEPARATOR}#{HOMEBREW_CONTRIB}/cmd"
- internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd)
+ internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd) if cmd
# Usage instructions should be displayed if and only if one of:
# - a help flag is passed AND an internal command is matched