Show more detailed error message when given arguments are invalid

This commit is contained in:
Sebastian Messmer 2015-11-03 13:01:51 -08:00
parent a5ff0f45d6
commit eb0a27759c

View File

@ -67,6 +67,7 @@ po::variables_map Parser::_parseOptionsOrShowHelp(const vector<char*> options, c
try { try {
return _parseOptions(options, supportedCiphers); return _parseOptions(options, supportedCiphers);
} catch(const std::exception &e) { } catch(const std::exception &e) {
std::cerr << e.what() << std::endl;
_showHelpAndExit(); _showHelpAndExit();
} }
} }