mxcl/homebrew — Issue #8823: ARGV.formulae and ARGV.kegs shouldn't throw errors
Author: Sharpie
Created: 2011-11-27 20:33:57+00:00
State: open

Currently, `ARGV.formulae` and `ARGV.kegs` raise exceptions instead of returning an empty list. This requires all uses of these methods to be guarded by `unless ARGV.named.empty?` which is redundant.

Code that absolutely requires formula or keg arguments should check the return values to see if empty lists came back.