You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The array passed into static void Main(string[] args) by the .Net framework seems to be different depending on whether you have the final '' character in it.
Fclp is expecting the .Net framework to have already parsed --dir "C:\temp\bar" --sk [veris into an array with 4 strings. This doesn't happen as the backslash seems to have escaped some parsing condition which has resulted in 2 strings. As a result it thinks the string "C:\temp\bar" --sk [veris is the value for the --dir option, which fails to parse because of the whitespace (it thinks the whitespace is seperating another value which is only valid if you're parsing into a List)
if i have this:
p.Setup(arg => arg.Directory)
.As("Dir")
.WithDescription("\tDirectory to look for hives (recursively). --Hive or --Dir is required.");
and then call the program like this:
foo.exe --dir "C:\temp\bar" --sk [veris
things work, but if i do this
foo.exe --dir "C:\temp\bar" --sk [veris
i get this error
Option '--dir' parse error: could not parse 'C:\temp\bar" --sk [veris' to 'System.String'.
seems that last back slash is causing issues. any work around?
The text was updated successfully, but these errors were encountered: