fclp / fluent-command-line-parser

A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface
Other
533 stars 86 forks source link

AdditionalOptionsFound list contains all args, regardless of whether they were unexpected #86

Open xuwilliam01 opened 7 years ago

xuwilliam01 commented 7 years ago

Looking at the code, any used keyvaluepairs in the parsedOptions list are not removed, therefore when the list is copied over to AdditionalOptionsFound, it just copies all the original inputs.

siywilliams commented 7 years ago

@Williamxu98 I thought you were right when I looked at the code, but then I tried it out. It looks to be doing as expected, in that the AdditionalOptionsFound list only contain options that were recognised in the input string but could not be matched to any pre-setup options in the parser

image

Can you reproduce your problem for me?