Skip to content

Commit

Permalink
fix: use topic separator for deprecated alias warnings in help (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
myarmolinsky authored Oct 1, 2024
1 parent cc8366a commit fb6ace2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/help/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ export class Help extends HelpBase {

if (command.deprecateAliases && command.aliases.includes(name)) {
const actualCmd = this.config.commands.find((c) => c.aliases.includes(name))
const opts = {...command.deprecationOptions, ...(actualCmd ? {to: actualCmd.id} : {})}
const actualCmdName = actualCmd ? toConfiguredId(actualCmd.id, this.config) : ''
const opts = {...command.deprecationOptions, ...(actualCmd ? {to: actualCmdName} : {})}
this.log(`${formatCommandDeprecationWarning(toConfiguredId(name, this.config), opts)}\n`)
}

Expand Down

0 comments on commit fb6ace2

Please sign in to comment.