Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Updated the help generator to allow for .js scripts to include help lines #117

Merged
merged 1 commit into from

2 participants

@jasford

I have a couple scripts written in JavaScript (instead of CoffeeScript) and wanted to get the benefit of the help script being able to show my new commands. This simple change lets you do this:

// Interacts with the Google Maps API.
//
//map me <query> - Returns a map view of the area returned by `query`.

instead of this:

# Interacts with the Google Maps API.
#
# map me <query> - Returns a map view of the area returned by `query`.
@atmos atmos merged commit a1c3708 into github:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 30, 2011
  1. @jasford
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/robot.coffee
View
2  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]
Something went wrong with that request. Please try again.