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
There is currently no parsing for input with quotes. For example, given /command "This should be one argument", the CommandExecutionContext args look like ["This, should, be, one, argument"]. Ideally, there would be an option in the command manager to pre-process arguments and group quoted one. In my example, this would resolve to a single arg, [This should be one argument]. This would be a solution to #253.
To expand on this, nested quotes could be escaped with \. Additionally, the method to set this behavior could take in a boolean to denote whether or not the quotes should remain in the parsed arguments.
The text was updated successfully, but these errors were encountered:
and then if you did /command blah blah blah, you would get back
"Argument: blah blah blah"
Though I don't think it does that if you had a command with more arguments after that.
and then if you did /command blah blah blah, you would get back
"Argument: blah blah blah"
Though I don't think it does that if you had a command with more arguments after that.
That's why this feature is useful. You can parse Strings with spaces between them, by using "".
There is currently no parsing for input with quotes. For example, given
/command "This should be one argument"
, theCommandExecutionContext
args look like["This, should, be, one, argument"]
. Ideally, there would be an option in the command manager to pre-process arguments and group quoted one. In my example, this would resolve to a single arg,[This should be one argument]
. This would be a solution to #253.To expand on this, nested quotes could be escaped with
\
. Additionally, the method to set this behavior could take in a boolean to denote whether or not the quotes should remain in the parsed arguments.The text was updated successfully, but these errors were encountered: