-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
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
End of Options ("--") processing broken #177
Comments
@plroebuck 👍 thank ou for the bug report. |
I made a PR to fix it 😁. |
Uh looks like it was merged and is in v13.1.1 so does that mean this should be closed? |
👍 @jimthedev @plroebuck I believe this should be addressed please go ahead and reopen if it continues causing issues. |
This still seems to be a problem with the latest version of yargs and arguments after the This small program (originally from #381) demonstrates the problem: const yargs = require('yargs/yargs')
const {hideBin} = require('yargs/helpers');
const argv = yargs(hideBin(process.argv))
.command('$0 <foo>', 'the default command', (yargs) => {
yargs
.positional('foo', {type: 'string', required: true})
}, (argv) => {
console.log(argv)
})
.argv Passing the string
|
Description
Mocha now ignores the test files supplied after "--", required to allow consumers to safely generate the command line arguments and avoid conflicts between test files and CLI options.
Steps to Reproduce
Setup
Test
$ npm test
Expected behavior: All tests should complete without errors.
Actual behavior: Multiple tests fail in the provided Mocha specification file.
Versions
Above provided for my testing, but issue unlikely to be platform-specific.
Additional Information
Bug exists in "yargs-parser" v11.1.1 (Mocha's pinned version), but persists in current version.
Upstream: mochajs/mocha#3899
The text was updated successfully, but these errors were encountered: