]> Creatis software - creaImageIO.git/blobdiff - appli/gimmick/main.cxx
*** empty log message ***
[creaImageIO.git] / appli / gimmick / main.cxx
index 7f21a164e767fce677bc168b63c6d9e98da2a39b..d90f0b8bcfa15f955261f571e2bef05c284c78d1 100644 (file)
@@ -1,8 +1,17 @@
 #include <creaImageIOGimmick.h>
+#include <creaMessageManager.h>
 
 int main(int argc, char* argv[])
 {
+  bool debug = false;
+  if(argc>1) 
+    {
+      debug = true;
+    }
+
   creaImageIO::Gimmick g;
+  g.SetDebugMode(debug);
+
   if (!g.Initialize()) return 1;
   if (!g.Finalize()) return 1;
   return 0;