Throw error on invalid option name.