Extracts the options from the file object.
The file object from which to extract the options.
The options to merge with the extracted options.
The options extracted from the file.
This function automatically sets the file name as the error source for better error reporting (unless explicitly overridden via options).
Extracts the options from the file object.