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

fix #1199 #1342

Merged
merged 2 commits into from
Jul 7, 2021
Merged

fix #1199 #1342

merged 2 commits into from
Jul 7, 2021

Conversation

jonsequitur
Copy link
Contributor

Fixes #1199.

Copy link
Member

@sfoslund sfoslund left a comment

Choose a reason for hiding this comment

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

This is great for the CLI, we're explicitly setting AllowMultipleArgumentsPerToken to false right now across all options that take multiple args. Thanks!

ParameterType = parameterType;
}

public string CommandLine { get; }
private BindingTestCase(
Copy link
Member

Choose a reason for hiding this comment

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

Rather than duplicating the assignments, should the public ctor just invoke this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed it so that one constructor calls the other. Neither is public, forcing the use of the factory method which is generic and allows for strongly-typed assertions.

@jonsequitur jonsequitur merged commit db332c6 into dotnet:main Jul 7, 2021
@jonsequitur jonsequitur added this to the 2.0 GA milestone Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change default for Option.AllowMultipleArgumentsPerToken to false
3 participants