标签: node.js yargs
我正在尝试设置同时为type: "number"和type: "string"的选项。
type: "number"
type: "string"
The documentation for .option()指定选项选项对象的type属性应为字符串,其中两个选项为数字和字符串。但是,我希望它接受两者。
.option()
type
我该怎么做?