aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-01-23 00:26:23 -0600
committerJack Nagel2013-01-26 11:37:01 -0600
commit70ff06c827ce0da3d3dabe9e9c4927061e6c7f4c (patch)
tree4d626df5e580077588bef5cdd0391b3e704eab64 /Library/Homebrew/cmd
parent26b1b88c974cc902b0e9c2c2b8d17a16335d8462 (diff)
downloadbrew-70ff06c827ce0da3d3dabe9e9c4927061e6c7f4c.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/Homebrew/cmd')
0 files changed, 0 insertions, 0 deletions