Skip to content

Add ArgumentParseOptions and overloads for Parse() accepting them #67

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

Merged
merged 6 commits into from
Jul 26, 2021

Conversation

jpdillingham
Copy link
Owner

Initially just three options;

  • TargetType -- same functionality as the previous targetType parameter
  • CombineAllMultiples -- combines repeated argument values into a list
  • CombinableArguments -- if CombineAllMultiples is false, combines the specified arguments into a list

If TargetType is supplied and repeated arguments match a property in the type, the behavior remains the same; if the backing type of the property is a collection, values are combined, otherwise they are overwritten.

If TargetType is not supplied, or repeated arguments don't match a property in the type, the behavior depends on the other options for multiples, either everything or just those specified.

Closes #66

@jpdillingham jpdillingham merged commit ee245ea into master Jul 26, 2021
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.

Parse() dos not capture multiple values for repeated arguments
1 participant