OSDN Git Service

[Development and Manual test] showing help correctly v0.3.0p0053
authorhimetani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Sun, 21 Feb 2016 07:50:05 +0000 (16:50 +0900)
committerhimetani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Sun, 21 Feb 2016 07:50:05 +0000 (16:50 +0900)
front-end/app/scripts/directives/Command.ts

index b37107b..3fae985 100644 (file)
@@ -92,7 +92,10 @@ namespace app.directives {
             });
 
             this.WebSocket.on('console', function(msg) {
-                controller.messages = msg.split('\n');
+                var messages = msg.split('\n');
+                if(messages[0].substr(0,6) === 'Usage:') {
+                    controller.messages = msg.split('\n');
+                }
             });
 
         }