Skip to content

fix #1199 - #1342

Merged
jonsequitur merged 2 commits into
dotnet:mainfrom
jonsequitur:fix-issue-1199
Jul 7, 2021
Merged

jonsequitur merged 2 commits into
dotnet:mainfrom
jonsequitur:fix-issue-1199

Conversation

@jonsequitur

Copy link
Copy Markdown
Contributor

Fixes #1199.

@jonsequitur
jonsequitur requested review from Keboo and sfoslund July 6, 2021 19:27

@sfoslund sfoslund left a comment

Copy link
Copy Markdown
Member

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!

}

public string CommandLine { get; }
private BindingTestCase(

Copy link
Copy Markdown
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
Copy Markdown
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