Skip to content
Snippets Groups Projects
Commit 8ebae758 authored by Michael Leyhe's avatar Michael Leyhe
Browse files

Added exit(0) after catching an exception in Parser.

parent e1ea3d05
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
if(!ifs.good())
{
stringstream strError;
strError << "Error accessing configuratiocommonn file " << _configFile;
strError << "Error accessing configuration file " << _configFile;
std::cout << cmdline_options << endl;
throw runtime_error(strError.str());
......@@ -314,8 +314,10 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
cerr << "Error parsing the command line:" << endl;
cerr << e.what() << std::endl;
cerr << "You can use -h or --help to obtain the description of the program parameters." << endl;
cerr << "This is the command line options\n" << endl;
return false;
// cerr << "This is the command line options\n" << endl;
exit(0);
// return false;
}
catch(...){
std::cerr << "Error parsing the command line. Use -h or --help to see the description of the program paramters." << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment