|
@ -77,17 +77,17 @@ int main(const int argc, const char* argv[]) { |
|
|
s = mrmc::settings::newInstance(argc, argv, nullptr); |
|
|
s = mrmc::settings::newInstance(argc, argv, nullptr); |
|
|
} catch (mrmc::exceptions::InvalidSettings&) { |
|
|
} catch (mrmc::exceptions::InvalidSettings&) { |
|
|
LOG4CPLUS_FATAL(logger, "Could not recover from settings error, terminating."); |
|
|
LOG4CPLUS_FATAL(logger, "Could not recover from settings error, terminating."); |
|
|
std::cout << std::endl << mrmc::settings::help << std::endl; |
|
|
|
|
|
|
|
|
std::cout << std::endl << mrmc::settings::help; |
|
|
delete s; |
|
|
delete s; |
|
|
return 1; |
|
|
return 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (s->isSet("help")) { |
|
|
if (s->isSet("help")) { |
|
|
std::cout << mrmc::settings::help << std::endl; |
|
|
|
|
|
|
|
|
std::cout << mrmc::settings::help; |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
if (s->isSet("help-config")) { |
|
|
if (s->isSet("help-config")) { |
|
|
std::cout << mrmc::settings::helpConfigfile << std::endl; |
|
|
|
|
|
|
|
|
std::cout << mrmc::settings::helpConfigfile; |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
if (s->isSet("test-prctl")) { |
|
|
if (s->isSet("test-prctl")) { |
|
|