修复命令执行缺少执行函数时的处理逻辑
This commit is contained in:
@ -505,9 +505,9 @@ public:
|
||||
|
||||
// 执行函数
|
||||
auto fn = cmd->execute();
|
||||
if (fn)
|
||||
return fn(CommandArgument(options, arguments));
|
||||
return 1;
|
||||
if (!fn)
|
||||
printUsage(cmd);
|
||||
return fn(CommandArgument(options, arguments));
|
||||
}
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user