aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-01-23 00:26:23 -0600
committerJack Nagel2013-01-26 11:37:01 -0600
commit8f5ea8eea6dfb3da758417e2c9bdda7d2a169408 (patch)
tree8c2791f46ae0e3d811dfc768af3b03b56332f871 /Library/Formula
parent91f15daf73c4c30c3ccd68eeee5d512935a0685e (diff)
downloadhomebrew-8f5ea8eea6dfb3da758417e2c9bdda7d2a169408.tar.bz2
Refactor option handling internals
Currently we handle options in several ways, and it is hard to remember what code needs an option string ("--foo"), what needs only the name ("foo") and what needs an Option object. Now that Option objects can act as strings and be converted to JSON, we can start using them instead of passing around strings between Formula objects, Tab objects, and ARGV-style arrays. The Options class is a special collection that can be queried for the inclusion of options in any form: '--foo', 'foo', or Option.new("foo").
Diffstat (limited to 'Library/Formula')
0 files changed, 0 insertions, 0 deletions