“(str: string, argsDescription: Record<string, string>): Command”已弃用。ts(6385) index.d.ts(728, 7): 该声明曾在此处标记为已弃用。
program
.arguments("<cmd> [options]")
.description("test command", {
cmd: "command to run",
options: "options for command",
})
.action(function (cmd, options) {
console.log(options, cmd);
});