aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-06-26 09:24:07 +0100
committerMike McQuaid2014-06-26 09:24:07 +0100
commitf61633a0766bf9087214f595c0fa19ef38c48eef (patch)
tree4dc2d644d47e717284e9d231238bc37544cf716d /Library/brew.rb
parent7ecffd2771c64356824a71e975a2216bc64fd159 (diff)
downloadbrew-f61633a0766bf9087214f595c0fa19ef38c48eef.tar.bz2
brew: guard --help with nil cmd.
Diffstat (limited to 'Library/brew.rb')
-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