We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docopt seems to erroneously repeat arguments when parsing an option block when:
const doc = ` Usage: foobar [-f X ... | --foo X ...] Options: -f X, --foo X bar ` console.log(require('docopt').docopt(doc))
const doc = ` Usage: foobar [-f X ...] [--foo X ...] Options: -f X, --foo X bar. ` console.log(require('docopt').docopt(doc))
👎
<test case 1> -f 1 -f 2 -f 3 -f 4 -f 5 -f 6 { '--foo': [ '1', '2', '3', '4', '5', '6', '2', '3', '4', '5', '6' ] }
👍
<test case 2> -f 1 -f 2 -f 3 -f 4 -f 5 -f 6 { '--foo': [ '1', '2', '3', '4', '5', '6' ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Docopt seems to erroneously repeat arguments when parsing an option block when:
Environment:
Test Cases:
Tests:
👎
👍
The text was updated successfully, but these errors were encountered: