feat: ajouter la gestion des erreurs pour trop d'arguments et mise à jour des commandes

This commit is contained in:
Puechberty Arthur
2026-04-12 13:36:58 +02:00
parent b5e9793578
commit d2eadc7f03
6 changed files with 42 additions and 18 deletions
+10
View File
@@ -59,6 +59,16 @@ export const parsePrefixArgs = async (
errors.push(parsed.error);
}
if (tokens.length > 0) {
errors.push({
key: "errors.args.tooMany",
vars: {
count: tokens.length,
extras: tokens.join(" "),
},
});
}
return { values, errors };
};