]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbi/bbi.cxx
=== MAJOR RELEASE ====
[bbtk.git] / kernel / appli / bbi / bbi.cxx
index 0ee9e1a0c9b7b3d5b641b130c36eb33e316922d0..3c00bb8db477d4ed45b9990f03cd761bb9b87951 100644 (file)
@@ -3,6 +3,7 @@
 //==========================================================================
 // WITH WX
 //==========================================================================
+#include "bbtkObject.h"
 #include "bbtkInterpreter.h"
 #include "bbtkWxBlackBox.h"
 #include "bbtkWxGUIConsole.h"
@@ -14,6 +15,7 @@
 
 static const wxCmdLineEntryDesc cmdLineDesc[] =
 {
+  { wxCMD_LINE_SWITCH, _T("M"), _T("Memory debug"), _T("Display memory debug message on exit") },
   { wxCMD_LINE_SWITCH, _T("d"), _T("debug"), _T("Debug messages on (message All 9)") },
   { wxCMD_LINE_SWITCH, _T("c"), _T("command"), _T("turn to command line mode after file(s) processing") },
   { wxCMD_LINE_SWITCH, _T("q"), _T("quiet"),   _T("be quiet") },
@@ -34,6 +36,7 @@ public:
   bool OnInit( );
   int  OnExit() { 
     //    std::cout << "wxBBIApp::OnExit()"<<std::endl;
+    // bbtk::Object::PrintObjectListInfo();
     return true; }
   void OnInitCmdLine(wxCmdLineParser& parser);
   bool OnCmdLineParsed(wxCmdLineParser& parser);
@@ -66,6 +69,11 @@ void wxBBIApp::OnInitCmdLine(wxCmdLineParser& parser)
 
 bool wxBBIApp::OnCmdLineParsed(wxCmdLineParser& parser)
 {
+  if (parser.Found(_T("M"))) 
+    {
+      bbtk::StaticInitTime::PrintObjectListInfo = true;
+    }
+  
   debug = ( parser.Found(_T("d")) );
   quiet = ( parser.Found(_T("q")) );
   help = ( parser.Found(_T("h")) );