docopt.coffee icon indicating copy to clipboard operation
docopt.coffee copied to clipboard

This doesn't actually match the spec or its own readme

Open Shakeskeyboarde opened this issue 4 years ago • 0 comments

const options = docopt(
  `
Usage: foo [options]

--bar  Description
  `,
  {
    argv: ['--bar']
  }
);

Throws because it doesn't detect --bar as an option. Looking at the code, it appears that all options must be under an *options*: heading and indented, which isn't what the readme or spec says...

Shakeskeyboarde avatar Nov 19 '21 18:11 Shakeskeyboarde