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
In the project I am working there is a method which need command line arguments as a string array which I can't change. So how to unparse into string array.
I can get a string by unparsing using var arguments = Parser.Default.FormatCommandLine(Program.cliOption).
But my argument will be something like this. app install --path "c:/My folder/app" --validate = false
So if I use above workaround I can't use string.Split(' ') since it possible to contains spaces in file paths. So is there any workaround to get string array from the object?
The text was updated successfully, but these errors were encountered:
The develop branch contain a new method FormatCommandLineArgs that generate array of strings.
You can download the package LineParser.2.8.0-ci-176.nupkg from CI server.
This feature will be available in v2.9
In the project I am working there is a method which need command line arguments as a
string array
which I can't change. So how to unparse into string array.I can get a string by unparsing using
var arguments = Parser.Default.FormatCommandLine(Program.cliOption)
.But my argument will be something like this.
app install --path "c:/My folder/app" --validate = false
So if I use above workaround I can't use
string.Split(' ')
since it possible to containsspaces
in file paths. So is there any workaround to get string array from theobject
?The text was updated successfully, but these errors were encountered: