Merge pull request #4 from kir0gawa/help-messages

Help messages
diff --git a/remote-processor/RemoteCommandHandlerTemplate.h b/remote-processor/RemoteCommandHandlerTemplate.h
index 000ab70..fbfa059 100644
--- a/remote-processor/RemoteCommandHandlerTemplate.h
+++ b/remote-processor/RemoteCommandHandlerTemplate.h
@@ -164,7 +164,7 @@
         if (!pRemoteCommandParserItem) {
 
             // Not found
-            strResult = "Command not found!";
+            strResult = "Command not found!\nUse \"help\" to show available commands";
 
             return false;
         }
diff --git a/test/test-platform/main.cpp b/test/test-platform/main.cpp
index 129224a..a3f50be 100644
--- a/test/test-platform/main.cpp
+++ b/test/test-platform/main.cpp
@@ -153,12 +153,27 @@
     }
 }
 
-static void usage()
+static void showUsage()
 {
-    cerr << "Invalid arguments: test-platform [-d] <file path> [port number, default "
+    cerr << "test-platform [-dh] <file path> [port number, default "
          << iDefaultPortNumber << "]" << endl;
 }
 
+static void showInvalidUsage()
+{
+    cerr << "Invalid arguments: ";
+    showUsage();
+}
+
+static void showHelp()
+{
+    showUsage();
+    cerr << "<file path> must be a valid .xml file, oftenly ParameterFrameworkConfiguration.xml" << endl;
+    cerr << "Arguments:" << endl
+        << "    -d  starts as a deamon" << endl
+        << "    -h  display this help and exit" << endl;
+}
+
 int main(int argc, char *argv[])
 {
     // Option found by call to getopt()
@@ -174,15 +189,17 @@
     int indexFilePath = 1;
 
     // Handle the -d option
-    while ((opt = getopt(argc, argv, "d")) != -1) {
+    while ((opt = getopt(argc, argv, "dh")) != -1) {
         switch (opt) {
         case 'd':
             isDaemon = true;
             indexFilePath = 2;
             break;
-
+        case 'h':
+            showHelp();
+            return 0;
         default:
-            usage();
+            showInvalidUsage();
             return -1;
         }
     }
@@ -190,7 +207,7 @@
     // Check the number of arguments
     if ((argc < indexFilePath + 1) || (argc > indexFilePath + 2)) {
 
-        usage();
+        showInvalidUsage();
         return -1;
     }