Add support for a :required flag on options