Skip to content

Two long options can result in "specified ambiguously" error #11

Open
@mmastrac

Description

@mmastrac

When I specify --woff given two option declarations --woff and --woff, I get an error saying that --woff is specified ambiguously 2 times

One-liner repro (after npm install docopt):

require('docopt').docopt("usage:\n--woff\n--woff2", {argv:["--woff"]})
 --woff is specified ambiguously 2 times

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions