@oclif/plugin-help 6.0.10 → 6.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/help.js +2 -1
- package/oclif.lock +1222 -280
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
package/lib/commands/help.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Args, Command, Flags,
|
|
1
|
+
import { Args, Command, Flags, loadHelpClass } from '@oclif/core';
|
|
2
2
|
export default class HelpCommand extends Command {
|
|
3
3
|
static args = {
|
|
4
4
|
commands: Args.string({ description: 'Command to show help for.', required: false }),
|
|
@@ -13,6 +13,7 @@ export default class HelpCommand extends Command {
|
|
|
13
13
|
static strict = false;
|
|
14
14
|
async run() {
|
|
15
15
|
const { argv, flags } = await this.parse(HelpCommand);
|
|
16
|
+
const Help = await loadHelpClass(this.config);
|
|
16
17
|
const help = new Help(this.config, { all: flags['nested-commands'] });
|
|
17
18
|
await help.showHelp(argv);
|
|
18
19
|
}
|