• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1const { Argument } = require('./lib/argument.js');
2const { Command } = require('./lib/command.js');
3const { CommanderError, InvalidArgumentError } = require('./lib/error.js');
4const { Help } = require('./lib/help.js');
5const { Option } = require('./lib/option.js');
6
7// @ts-check
8
9/**
10 * Expose the root command.
11 */
12
13exports = module.exports = new Command();
14exports.program = exports; // More explicit access to global command.
15// Implicit export of createArgument, createCommand, and createOption.
16
17/**
18 * Expose classes
19 */
20
21exports.Argument = Argument;
22exports.Command = Command;
23exports.CommanderError = CommanderError;
24exports.Help = Help;
25exports.InvalidArgumentError = InvalidArgumentError;
26exports.InvalidOptionArgumentError = InvalidArgumentError; // Deprecated
27exports.Option = Option;
28