Fix option parsing (raise an error in case of unknown options)