- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineParser.cpp
r11d433 r690741 52 52 #include "CommandLineParser.hpp" 53 53 #include "CommandLineParser_validate.hpp" 54 #include "World.hpp"55 54 56 55 #include "CodePatterns/Singleton_impl.hpp" … … 431 430 void CommandLineParser::Parse() 432 431 { 433 try { 434 po::store(po::command_line_parser(argc,argv).options(cmdline_options).run(), vm); 435 } catch (std::exception &e) { 436 std::cerr << "Something went wrong with parsing the command-line arguments." << std::endl; 437 World::getInstance().setExitFlag(134); 438 #ifdef HAVE_ACTION_THREAD 439 // force action queue to stop thread 440 ActionQueue::getInstance().stop(); 441 #endif 442 ActionQueue::getInstance().clearQueue(); 443 } 432 po::store(po::command_line_parser(argc,argv).options(cmdline_options).run(), vm); 444 433 std::ifstream input; 445 434 input.open("example.cfg");
Note:
See TracChangeset
for help on using the changeset viewer.