Skip to content
Snippets Groups Projects
Commit da2f8e8a authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: add Init call in case LoadParameters failed befoire calling help

parent 7ab3261f
No related branches found
No related tags found
No related merge requests found
......@@ -219,6 +219,7 @@ bool CommandLineLauncher::BeforeExecute()
std::cerr << "ERROR: Troubles loading parameter, please check your line argument..." << std::endl;
// Force to reload the application, the LoadParameters can change wrong values
this->LoadApplication();
m_Application->Init();
this->DisplayHelp();
return false;
......@@ -230,6 +231,7 @@ bool CommandLineLauncher::BeforeExecute()
std::cerr << err.GetDescription() << std::endl;
// Force to reload the application, the LoadParameters can change wrong values
this->LoadApplication();
m_Application->Init();
this->DisplayHelp();
return false;
......
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