Skip to content

Commit

Permalink
Updated the help generator to allow for .js scripts to include help l…
Browse files Browse the repository at this point in the history
…ines as well.
  • Loading branch information
jasford committed Oct 30, 2011
1 parent 28c5b29 commit 1d1b69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robot.coffee
Expand Up @@ -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]

Expand Down

0 comments on commit 1d1b69d

Please sign in to comment.