diff --git a/eo/src/utils/eoParser.cpp b/eo/src/utils/eoParser.cpp index 0191d53f..451da162 100644 --- a/eo/src/utils/eoParser.cpp +++ b/eo/src/utils/eoParser.cpp @@ -213,7 +213,7 @@ void eoParser::printOn(ostream& os) const printSectionHeader(os, section); //print every param with its value for (; p != params.end(); ++p) - { + { std::string newSection = p->first; if (newSection != section) @@ -224,6 +224,9 @@ void eoParser::printOn(ostream& os) const eoParam* param = p->second; + if (!isItThere(*param)) // comment out the ones not set by the user + os << "# "; + string str = "--" + param->longName() + "=" + param->getValue(); os.setf(ios_base::left, ios_base::adjustfield);