Refactorization: Make use of Function::retDef where it makes sense
Test GetShowErrorMessages in testcmdlineparser.cpp