The public API for the new options system.
Review Request #831 - Created Aug. 5, 2014 and submitted
The public API for the new options system. Relies on a bunch of code reviewed by others and pushed to master, so feel free to browse that for context. All relevant code is in src/python/pants/option and tests/python/pants_test/option/. This completes the new options code. Remaining work involves actually hooking this code up to something...
Unittests pass. CI baking. This code isn't hooked up to anything yet anyway.
Sorry for the delay here. Exciting!
Unused in this review - is this an artifact of review staging?. If it is used somewhere I always prefer a docstring for the class to a pass. Are these raised for ill defined options or badly formed option args on the command line or both?, ie I like: class OptionError(Exception): """Indicates ..."""
+1 indent for this line and the next
If you import unittest2 then you get the native with self.assertRaises(...):