mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:26:21 +02:00
@@ -7,7 +7,6 @@ class ChoiceArgumentType extends ArgumentType {
|
||||
}
|
||||
|
||||
validate(value, msg, arg) {
|
||||
console.log(arg, arg.choices);
|
||||
if (arg.choices.includes(value.toLowerCase())) return true;
|
||||
return `Invalid ${arg.label}, please enter either ${list(arg.choices, 'or')}.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user