brew: guard --help with nil cmd.
This commit is contained in:
parent
7ecffd2771
commit
f61633a076
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user