From 5de6a402129299a3b0d17dc6ddc2dc1cd82b6005 Mon Sep 17 00:00:00 2001 From: Domix24 Date: Wed, 12 Jun 2024 11:05:27 -0400 Subject: [PATCH] fix: single command cli symbol on help output (#1112) --- src/help/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/help/index.ts b/src/help/index.ts index 75402631f..ddfcb3655 100644 --- a/src/help/index.ts +++ b/src/help/index.ts @@ -239,6 +239,9 @@ export class Help extends HelpBase { if (this.config.isSingleCommandCLI) { const rootCmd = this.config.findCommand(SINGLE_COMMAND_CLI_SYMBOL) if (rootCmd) { + // set the command id to an empty string to prevent the + // SINGLE_COMMAND_CLI_SYMBOL from being displayed in the help output + rootCmd.id = '' await this.showCommandHelp(rootCmd) return }