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

Multi value support #7

Merged
merged 1 commit into from
Jun 9, 2017
Merged

Multi value support #7

merged 1 commit into from
Jun 9, 2017

Conversation

smelukov
Copy link
Contributor

@smelukov smelukov commented Jun 8, 2017

No description provided.

@smelukov smelukov force-pushed the multi-params branch 2 times, most recently from 2ac9aac to c2be7e4 Compare June 8, 2017 20:35
@@ -719,27 +721,21 @@ Command.prototype = {
prevCommand.delegate_(command);

// apply beforeInit options
command.setOptions(
Copy link
Owner

Choose a reason for hiding this comment

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

Why we need change this?

Copy link
Contributor Author

@smelukov smelukov Jun 8, 2017

Choose a reason for hiding this comment

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

With this change, normalization for --foo bar baz --foo quux will run 2 times:

  • [foo, bar]
  • [quux]

For every passed option with the same name.

Without it only 1 time: [foo, bar, quux] for all passed options with the same name.

@smelukov smelukov changed the title added multi value support Multi value support Jun 8, 2017
@lahmatiy lahmatiy merged commit abd4947 into lahmatiy:master Jun 9, 2017
@smelukov smelukov deleted the multi-params branch June 9, 2017 19:30
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.

2 participants