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
1 changed files with 1 additions and 0 deletions

View File

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