This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Description
I'm trying to find a good parser for JavaScript and I am struggling. docopt (npm module) really doesn't like my syntax even though the website's Python parser thinks this is splendid. neodoc also chokes. Is there something I can do to fix this?
Here's my code:
#!/usr/bin/env node
"use strict";
var syntax;
syntax = `Usage: animal.js [options]
--cow Pretend to be a cow.
`;
require("neodoc").run(syntax);
And here's the message.
Failed to parse the formal usage specification:
Expected End of usage section
This is an error with the program itself and not your fault.
Please bring this to the program author's attention.