UNPKG

756 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const command_1 = require("@oclif/command");
4const __1 = require("..");
5class HelpCommand extends command_1.Command {
6 async run() {
7 const { flags, argv } = this.parse(HelpCommand);
8 const Help = __1.getHelpClass(this.config);
9 const help = new Help(this.config, { all: flags.all });
10 help.showHelp(argv);
11 }
12}
13exports.default = HelpCommand;
14HelpCommand.description = 'display help for <%= config.bin %>';
15HelpCommand.flags = {
16 all: command_1.flags.boolean({ description: 'see all commands in CLI' }),
17};
18HelpCommand.args = [
19 { name: 'command', required: false, description: 'command to show help for' },
20];
21HelpCommand.strict = false;