diff options
| author | Adam Vandenberg | 2010-02-19 21:55:17 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-24 11:15:12 -0800 |
| commit | 080a7ee3dc0eafb5221ecda185caff1c63748d0f (patch) | |
| tree | cd5c720d57e490f653a85e5783257da63c05e59d /bin | |
| parent | 1149b082bb07ef603051ff1be1b18c4a33423c3f (diff) | |
| download | brew-080a7ee3dc0eafb5221ecda185caff1c63748d0f.tar.bz2 | |
brew --cache [formula]
This developer-oriented command lets you ask Homebrew what the cached
filename will be for a brew's tarball.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -14,7 +14,14 @@ require 'global' case ARGV.first when '--cache' - puts HOMEBREW_CACHE + if ARGV.named.empty? + puts HOMEBREW_CACHE + else + require 'formula' + ARGV.named.each do |name| + puts Formula.factory(name).cached_download rescue '(built from source control)' + end + end exit 0 when '-h', '--help', '--usage', '-?', 'help', nil puts ARGV.usage |
