comparison Applications/Generic/NativeStoneApplicationRunner.cpp @ 657:9e3bb8b4f726 am-dev

allow unregistered command line options (seems that it does not work in WASM !!)
author Alain Mazy <alain@mazy.be>
date Tue, 14 May 2019 18:24:12 +0200
parents b336dfa71f12
children 63982c8c294a
comparison
equal deleted inserted replaced
630:0c5398c3b994 657:9e3bb8b4f726
101 bool error = false; 101 bool error = false;
102 102
103 try 103 try
104 { 104 {
105 boost::program_options::store(boost::program_options::command_line_parser(argc, argv). 105 boost::program_options::store(boost::program_options::command_line_parser(argc, argv).
106 options(options).run(), parameters); 106 options(options).allow_unregistered().run(), parameters);
107 boost::program_options::notify(parameters); 107 boost::program_options::notify(parameters);
108 } 108 }
109 catch (boost::program_options::error& e) 109 catch (boost::program_options::error& e)
110 { 110 {
111 LOG(ERROR) << "Error while parsing the command-line arguments: " << e.what(); 111 LOG(ERROR) << "Error while parsing the command-line arguments: " << e.what();