| 1 |
import commander from "commander"; |
| 2 |
import { addCompletionSpecCommand } from "../../../src"; |
| 3 |
|
| 4 |
const program = new commander.Command(); |
| 5 |
|
| 6 |
program |
| 7 |
.option("-f, --float <number>", "float argument") |
| 8 |
.option("-i, --integer <number>", "integer argument") |
| 9 |
.option("-v, --verbose [level]", "verbosity that can be increased", "1") |
| 10 |
.option("-c, --collect <value>", "repeatable value") |
| 11 |
.option("-l, --list <items>", "comma separated list"); |
| 12 |
|
| 13 |
addCompletionSpecCommand(program); |
| 14 |
program.parse(process.argv); |