forked from teamnwah/openmw-tes3coop
Catched another exception
This commit is contained in:
parent
f4d302501e
commit
5b81d124bb
2 changed files with 10 additions and 2 deletions
|
@ -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…
Reference in a new issue