Skip to content
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

feat: when parsing stops, we now populate "--" by default #88

Merged
merged 2 commits into from
May 1, 2017
Merged

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Apr 15, 2017

BREAKING CHANGE: rather than placing arguments in "_", when parsing is stopped via "--"; we now populate an array called "--" by default.

I've changed the configuration option to be named populate-- rather than --; as this better fits with the naming conventions of our other configuration settings.

CC: @ruimarques

Copy link
Member

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me! Though I'm not sure why the appveyor tests are failing... other than just being windows...

@bcoe
Copy link
Member Author

bcoe commented Apr 16, 2017

@JaKXz whoops, I forgot to drop 0.12/0.12 from AppVeyor; I figured since it's yargs 8.x, we should drop Node 0.10/0.12.

'-b', '--bool', '--no-meep', '--multi=baz',
'--', '--not-a-flag', '-', '-h', '-multi', '--', 'eek'
], {
'--': true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be configuration: {'populate--': true} ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, I should actually just remove this configuration; since it defaults to true now.

@bcoe bcoe merged commit cd666db into master May 1, 2017
@bcoe bcoe deleted the populate-- branch May 1, 2017 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants