From 5b81d124bba3017f44a890af507a21397b3cbdad Mon Sep 17 00:00:00 2001 From: Glorf Date: Wed, 26 Jun 2013 18:43:27 +0200 Subject: [PATCH] Catched another exception --- apps/esmtool/esmtool.cpp | 5 +++++ apps/mwiniimporter/main.cpp | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/esmtool/esmtool.cpp b/apps/esmtool/esmtool.cpp index 57e9f59cc9..a60e9f0e20 100644 --- a/apps/esmtool/esmtool.cpp +++ b/apps/esmtool/esmtool.cpp @@ -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); diff --git a/apps/mwiniimporter/main.cpp b/apps/mwiniimporter/main.cpp index 9aff898b9f..364a6b1a4a 100644 --- a/apps/mwiniimporter/main.cpp +++ b/apps/mwiniimporter/main.cpp @@ -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;