def process_auth_options(parser, options): """Configures process-wide authentication parameters based on |options|.""" try: net.set_oauth_config(oauth.extract_oauth_config_from_options(options)) except ValueError as exc: parser.error(str(exc))