integrations/commander/test/fixtures/options-variadic/command.ts
raw| 1 | import commander from "commander"; |
| 2 | import { addCompletionSpecCommand } from "../../../src"; |
| 3 | |
| 4 | const program = new commander.Command(); |
| 5 | |
| 6 | program |
| 7 | .option("-n, --number <value...>", "specify numbers") |
| 8 | .option("-l, --letter [value...]", "specify letters"); |
| 9 | |
| 10 | addCompletionSpecCommand(program); |
| 11 | program.parse(process.argv); |