aikar / aikar/commands

Option to automatically parse quoted input

Ouverte
#311 2 commentaires 6 réactions 0 personnes assignées Voir sur GitHub
core feature
Langage dominant
Java
Étoiles
628
Forks
150
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.