increase the use of python in mussa
[mussa.git] / alg / parse_options.cpp
index ce253246fb3d162b9c7d80d27c7d85ebee3fa8a9..8a777d4b740c3d90ac25a43bd5ce4ebb892042f4 100644 (file)
@@ -9,7 +9,8 @@ namespace po = boost::program_options;
 
 MussaOptions::MussaOptions()
   : analysis(0),
-    useGUI(true)
+    useGUI(true),
+    runAsPythonInterpeter(false)
 {
 }
 
@@ -26,6 +27,7 @@ void initialize_mussa(MussaOptions& opts, int argc, char **argv)
     ("view-analysis", po::value<std::string>(),
      "load a previously run analysis")
     ("no-gui", "terminate without running an analysis")
+    ("python", "launch as a python interpreter")
   ;
 
   po::variables_map vm;
@@ -52,4 +54,7 @@ void initialize_mussa(MussaOptions& opts, int argc, char **argv)
   if (vm.count("no-gui")) {
     opts.useGUI=false;
   }
+  if (vm.count("python")) {
+    opts.runAsPythonInterpeter = true;
+  }
 }