This project is read-only.


Unable to get /Param="Value" to work


Hi, I'm testing v2.6.0.6 and I can see you added support for --Param="Value", but I can't seem to get this to work. I have set:
            parser.IgnoreCase = true;
            parser.AcceptSlash = true;
            parser.AcceptEqualSignSyntaxForValueArguments = true;
And am trying to get a parameter in the form /Param="Value" to work.
I also can't get the --Param="Value" to work.

I get the error Unknown argument found: P.

Any help would be much appreciated.
Closed Feb 21, 2016 at 9:28 PM by Trupik


vbtrek wrote Apr 16, 2015 at 1:20 PM

I've found the bug, in ExpandValueArgumentsWithEqualSigns the RegEx expression needs to change from "(.)=\"(.)\"" to "(.)=(.)" the reason being that when you copy all the arguments into a List in ParseCommandLine .NET removes all the quote characters.

Any chance of a new build?

Trupik wrote Jan 31, 2016 at 4:49 PM

I'm not sure I follow, could you past a complete example and expected output?

Trupik wrote Feb 21, 2016 at 9:28 PM

This issue has been addressed in v3 which you now can get from NuGet.
The project has been migrated to GitHub, please use it for tracking the project, getting information about new releases & reporting all potential issues.

wrote Feb 21, 2016 at 9:28 PM

wrote Feb 21, 2016 at 9:29 PM