changeset 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 0c5398c3b994
children 63982c8c294a 3f13f7f1b55d
files Applications/Generic/NativeStoneApplicationRunner.cpp Applications/Wasm/StartupParametersBuilder.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Generic/NativeStoneApplicationRunner.cpp	Wed May 08 16:49:01 2019 +0200
+++ b/Applications/Generic/NativeStoneApplicationRunner.cpp	Tue May 14 18:24:12 2019 +0200
@@ -103,7 +103,7 @@
     try
     {
       boost::program_options::store(boost::program_options::command_line_parser(argc, argv).
-                                    options(options).run(), parameters);
+                                    options(options).allow_unregistered().run(), parameters);
       boost::program_options::notify(parameters);
     }
     catch (boost::program_options::error& e)
--- a/Applications/Wasm/StartupParametersBuilder.cpp	Wed May 08 16:49:01 2019 +0200
+++ b/Applications/Wasm/StartupParametersBuilder.cpp	Tue May 14 18:24:12 2019 +0200
@@ -31,7 +31,7 @@
         try
         {
             boost::program_options::store(boost::program_options::command_line_parser(argCounter, argv).
-                                            options(options).run(), parameters);
+                                            options(options).allow_unregistered().run(), parameters);
             boost::program_options::notify(parameters);
         }
         catch (boost::program_options::error& e)