Open nasserakhter opened 4 years ago
CommandLineParser adds a .SplitArgs()
extension method to strings that's supposed to handle quoting for you. It should be available as long as you have a using CommandLineParser
statement in your source file. Give that a try.
I have this string: --text "Hello World" --desc "Prints hello world to the screen" Using string.split(' '); splits it on every space including inside the quotes
Is there any function to split this string with respect to the quotes so I can parse it as a string[]?