mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 08:12:04 +02:00
Fix
This commit is contained in:
@@ -37,7 +37,7 @@ module.exports = class CommandDispatcher {
|
||||
const finalResult = { flags: parsed };
|
||||
for (let i = 0; i < command.args.length; i++) {
|
||||
const arg = command.args[i];
|
||||
const parsedArg = result._[i];
|
||||
const parsedArg = parsed._[i];
|
||||
if (arg.isEmpty(parsedArg, msg, arg)) {
|
||||
if (arg.default) {
|
||||
finalResult[arg.name] = typeof arg.default === 'function' ? arg.default(msg) : arg.default;
|
||||
|
||||
Reference in New Issue
Block a user