parse and validate simple name/value option pairs