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

Failed to parse formal usage specification? #76

Closed
@fidian

Description

@fidian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions