mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04:00
Catched another exception
This commit is contained in:
parent
f4d302501e
commit
5b81d124bb
@ -122,6 +122,11 @@ bool parseOptions (int argc, char** argv, Arguments &info)
|
|||||||
std::cerr << "ERROR: " << x.what() << std::endl;
|
std::cerr << "ERROR: " << x.what() << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
catch(boost::program_options::invalid_command_line_syntax & x)
|
||||||
|
{
|
||||||
|
std::cerr << "ERROR: " << x.what() << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bpo::notify(variables);
|
bpo::notify(variables);
|
||||||
|
|
||||||
|
@ -43,8 +43,11 @@ int main(int argc, char *argv[]) {
|
|||||||
std::cerr << "ERROR: " << x.what() << std::endl;
|
std::cerr << "ERROR: " << x.what() << std::endl;
|
||||||
return false;
|
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")) {
|
if(vm.count("help") || !vm.count("ini") || !vm.count("cfg")) {
|
||||||
std::cout << desc;
|
std::cout << desc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user