brew: guard --help with nil cmd.

This commit is contained in:
Mike McQuaid 2014-06-26 09:24:07 +01:00
parent 7ecffd2771
commit f61633a076

View File

@ -110,7 +110,7 @@ begin
# Add contributed commands to PATH before checking. # Add contributed commands to PATH before checking.
ENV['PATH'] += "#{File::PATH_SEPARATOR}#{HOMEBREW_CONTRIB}/cmd" 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: # 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 an internal command is matched