docopt.coffee
docopt.coffee copied to clipboard
This doesn't actually match the spec or its own readme
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...