fclp / fluent-command-line-parser

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

Problem in parse when the string finalize with "\"" #65

Open juniorgasparotto opened 8 years ago

juniorgasparotto commented 8 years ago

Hello,

I'm with a problem when my input is: "abc\"efd\"", I thing that output should be [abc"efd"](without []), but the output is [abc"efd] without the last char ' " '. It's very strange.

[]s

kkm000 commented 8 years ago

This is how .NET own parser mangles args[], AFAIK. The only fix would be to parse off Environment.CommandLine.

siywilliams commented 6 years ago

Yes @kkm000 is correct in that .NET has already had a go at chewing that string value to pieces before it gets into the parser.

I just tried throwing the raw values directly into the parser fclp.Parse(new []{ "--test", "abc\"efd\"" }); which worked as expected.