From f240617b6e6d5f3dc1f424478cfd6462cdc8df47 Mon Sep 17 00:00:00 2001 From: Dan Hulton Date: Wed, 10 Jan 2024 12:28:10 -0500 Subject: [PATCH] Support custom help classes. (#523) Co-authored-by: Mike Donnalley --- src/commands/help.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/help.ts b/src/commands/help.ts index af7e97a7..8ee2fdf2 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -1,4 +1,4 @@ -import {Args, Command, Flags, Help} from '@oclif/core' +import {Args, Command, Flags, loadHelpClass} from '@oclif/core' export default class HelpCommand extends Command { static args = { @@ -18,6 +18,7 @@ export default class HelpCommand extends Command { async run(): Promise { const {argv, flags} = await this.parse(HelpCommand) + const Help = await loadHelpClass(this.config); const help = new Help(this.config, {all: flags['nested-commands']}) await help.showHelp(argv as string[]) }