From 1d1b69d3ed9b2643fba81af1af268157d5e61355 Mon Sep 17 00:00:00 2001 From: Jason Ford Date: Sun, 30 Oct 2011 13:31:05 -0500 Subject: [PATCH] Updated the help generator to allow for .js scripts to include help lines as well. --- src/robot.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/robot.coffee b/src/robot.coffee index 9622fb430..c6d100c1c 100644 --- a/src/robot.coffee +++ b/src/robot.coffee @@ -124,7 +124,7 @@ class Robot Fs.readFile path, "utf-8", (err, body) => throw err if err for i, line of body.split("\n") - break if line[0] != '#' + break if !(line[0] == '#' or line.substr(0, 2) == '//') continue if !line.match('-') @commands.push line[2..line.length]