Closed
Description
program
.command("a <b> <c> <d>")
.action((a, b, c, d) => {
// a, b & c are string values as expected
// d is the Command class object
})
.parse(process.argv);
The workaround is to add an extra, unused argument until this is fixed.
program
.command("a <b> <c> <d> [x]")
.action((a, b, c, d) => {
// a, b, c & d are string values as expected
})
.parse(process.argv);
Metadata
Metadata
Assignees
Labels
No labels
Activity