S_New4/main.cpp

18 lines
449 B
C++
Raw Normal View History

2019-07-06 18:47:29 +00:00
#include "programManager.h"
int main(int argc, char *argv[])
{
ProgramManager mainProgram;
Settings settings;
int res = manageParameter(settings, argc, argv);
2019-10-31 14:09:09 +00:00
if(res == -1)
return 0;
else if(res != 0) {
2019-11-03 14:38:23 +00:00
if(settings.debugMode)
std::cout << " => Error: Das Auswerten der Parameter ist fehlgeschlagen!" << std::endl;
2019-10-31 14:09:09 +00:00
return res;
} else {
return mainProgram.start(&settings);
}
2019-07-06 18:47:29 +00:00
}