Debian Codegraph @

integrations/commander/test/fixtures/options-negatable/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("--no-sauce", "Remove sauce")
8 .option("--cheese <flavour>", "cheese flavour", "mozzarella")
9 .option("--no-cheese", "plain with no cheese");
10
11 addCompletionSpecCommand(program);
12 program.parse(process.argv);