Debian Codegraph @

integrations/commander/test/fixtures/options-required/command.ts

raw
1 import commander from "commander";
2 import { addCompletionSpecCommand } from "../../../src";
3
4 const program = new commander.Command();
5
6 program.requiredOption("-c, --cheese <type>", "pizza must have cheese");
7
8 addCompletionSpecCommand(program);
9 program.parse(process.argv);