Parse and process typical options in configuration string or structure Parameters: cfg - configuration to process CFG - defaults ECFG - early defaults mode - mode in which the problem function should be called, if any Returns: cfg - the parsed configuration overridden - fields that were explicitly set defaulted - fields that defaulted