diff options
Diffstat (limited to 'Library/brew.rb')
| -rwxr-xr-x | Library/brew.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb index 5b2af88a9..886b07910 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -106,7 +106,13 @@ begin # Add SCM wrappers. ENV["PATH"] += "#{File::PATH_SEPARATOR}#{HOMEBREW_LIBRARY}/ENV/scm" - internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd) if cmd + if cmd + internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("cmd", cmd) + + if !internal_cmd && ARGV.homebrew_developer? + internal_cmd = require? HOMEBREW_LIBRARY_PATH.join("dev-cmd", cmd) + end + end # Usage instructions should be displayed if and only if one of: # - a help flag is passed AND an internal command is matched |
