Index: trunk/FACT++/src/Main.h
===================================================================
--- trunk/FACT++/src/Main.h	(revision 12086)
+++ trunk/FACT++/src/Main.h	(revision 12087)
@@ -32,4 +32,19 @@
 
         conf.AddOptions(config);
+    }
+
+    template<class T>
+    void PrintHelp()
+    {
+        Dim::Setup();
+
+        ofstream fout("/dev/null");
+
+        T io_service(fout);
+
+        io_service.PrintListOfStates(cout);
+        cout << "\nList of available commands:\n\n";
+        io_service.PrintListOfEvents(cout);
+        cout << "\n";
     }
 
