readall: add --aliases

This commit is contained in:
Xu Cheng 2015-09-05 14:08:26 +08:00
parent 818c65542d
commit 1555edf4d6

View File

@ -31,6 +31,15 @@ module Homebrew
Homebrew.failed = failed
end
if ARGV.delete("--aliases")
Pathname.glob("#{HOMEBREW_LIBRARY}/Aliases/*").each do |f|
next unless f.symlink?
next if f.file?
onoe "Broken alias: #{f}"
Homebrew.failed = true
end
end
formulae = []
if ARGV.named.empty?
formulae = Formula.files