Skip to content

Commit

Permalink
fix: single command cli symbol on help output (#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domix24 authored Jun 12, 2024
1 parent 03d0578 commit 5de6a40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/help/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5de6a40

Please sign in to comment.