1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Catched another exception

This commit is contained in:
Glorf 2013-06-26 18:43:27 +02:00
parent f4d302501e
commit 5b81d124bb
2 changed files with 10 additions and 2 deletions

View File

@ -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);

View File

@ -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;