Open Miliver opened 3 years ago
Parser automatically removes quatation marks from begin or end of a arguments value (i. e. -name="miliver => -name=miliver).
string input = "run -name=\"miliver"; var rootCommand = new RootCommand { new Option ( name: "-name", ) }; string userName; rootCommand.Handler = CommandHandler.Create<string>((name) => { userName = name; }); await rootCommand.InvokeAsync(args); //userName = miliver
I'm not sure if this is a bug or feature? Thank you for answer.
This looks like a bug.
Parser automatically removes quatation marks from begin or end of a arguments value (i. e. -name="miliver => -name=miliver).
I'm not sure if this is a bug or feature? Thank you for answer.