Debian Codegraph @

integrations/commander/test/fixtures/custom-help/command.ts

raw symbols SCIP
1 import { Command } from "commander";
2 import { addCompletionSpecCommand } from "../../../src";
3
4 const program = new Command();
5
6 program
7 .helpOption("-c, --HELP", "custom help message")
8 .option("-s, --sessions", "add session support")
9 .option("-t, --template <engine>", "specify template engine (jade|ejs) [jade]", "jade")
10 .addHelpCommand("hlp [argument]", "some nice description");
11
12 program.command("child").option("--gender", "specific gender of child");
13
14 addCompletionSpecCommand(program);
15 program.parse(process.argv);