Debian Codegraph @

integrations/commander/test/fixtures/implicit-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 .version("0.1.0")
8 .argument("<username>", "user to login")
9 .argument("[password]", "password for user, if required", "no password given")
10 .description("example program for argument")
11 .addHelpCommand();
12
13 addCompletionSpecCommand(program);
14 program.parse(process.argv);