Catched another exception

actorid
Glorf 12 years ago
parent f4d302501e
commit 5b81d124bb

@ -122,6 +122,11 @@ bool parseOptions (int argc, char** argv, Arguments &info)
std::cerr << "ERROR: " << x.what() << std::endl;
return false;
}
catch(boost::program_options::invalid_command_line_syntax & x)
{
std::cerr << "ERROR: " << x.what() << std::endl;
return false;
}
bpo::notify(variables);

@ -43,8 +43,11 @@ int main(int argc, char *argv[]) {
std::cerr << "ERROR: " << x.what() << std::endl;
return false;
}
catch(boost::program_options::invalid_command_line_syntax & x)
{
std::cerr << "ERROR: " << x.what() << std::endl;
return false;
}
if(vm.count("help") || !vm.count("ini") || !vm.count("cfg")) {
std::cout << desc;

Loading…
Cancel
Save