I’m working on a admin and I need to add an argument system that not only splits a command by spaces but allows spaces in a single arg if quotes are used. Similar to how you use the linux terminal.
Here’s an example:
Input:
Hello World "argument with spaces"
Output:
{"Hello","World","argument with spaces"}
Also it would be cool if you were able to type the quotes using backslashes without the program thinking that they are a spaced argument close/open character. Like:
"This is a \"spaced argument\" that uses \\ to write quotes"
Output:
This is a a "spaced argument" that uses \ to write quotes