1 | const { Argument } = require('./lib/argument.js');
|
2 | const { Command } = require('./lib/command.js');
|
3 | const { CommanderError, InvalidArgumentError } = require('./lib/error.js');
|
4 | const { Help } = require('./lib/help.js');
|
5 | const { Option } = require('./lib/option.js');
|
6 |
|
7 | exports.program = new Command();
|
8 |
|
9 | exports.createCommand = (name) => new Command(name);
|
10 | exports.createOption = (flags, description) => new Option(flags, description);
|
11 | exports.createArgument = (name, description) => new Argument(name, description);
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | exports.Command = Command;
|
18 | exports.Option = Option;
|
19 | exports.Argument = Argument;
|
20 | exports.Help = Help;
|
21 |
|
22 | exports.CommanderError = CommanderError;
|
23 | exports.InvalidArgumentError = InvalidArgumentError;
|
24 | exports.InvalidOptionArgumentError = InvalidArgumentError;
|