comparison Applications/Wasm/StartupParametersBuilder.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 092db46c6291
children 63982c8c294a
comparison
equal deleted inserted replaced
630:0c5398c3b994 657:9e3bb8b4f726
29 printf("simulated cmdLine = %s\n", cmdLine.c_str()); 29 printf("simulated cmdLine = %s\n", cmdLine.c_str());
30 30
31 try 31 try
32 { 32 {
33 boost::program_options::store(boost::program_options::command_line_parser(argCounter, argv). 33 boost::program_options::store(boost::program_options::command_line_parser(argCounter, argv).
34 options(options).run(), parameters); 34 options(options).allow_unregistered().run(), parameters);
35 boost::program_options::notify(parameters); 35 boost::program_options::notify(parameters);
36 } 36 }
37 catch (boost::program_options::error& e) 37 catch (boost::program_options::error& e)
38 { 38 {
39 printf("Error while parsing the command-line arguments: %s\n", e.what()); 39 printf("Error while parsing the command-line arguments: %s\n", e.what());