Show more detailed error message when given arguments are invalid
This commit is contained in:
parent
a5ff0f45d6
commit
eb0a27759c
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user