2019-07-06 18:47:29 +00:00
|
|
|
#include "programManager.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
ProgramManager mainProgram;
|
2019-08-03 16:23:12 +00:00
|
|
|
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
|
|
|
}
|