“(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);
? });