Fix parsing of required options.