From fb6ace237c5f6b3f7707edb7ba93e00aeee9b412 Mon Sep 17 00:00:00 2001 From: Matthew Yarmolinsky Date: Tue, 1 Oct 2024 11:05:03 -0400 Subject: [PATCH] fix: use topic separator for deprecated alias warnings in `help` (#1209) --- src/help/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/help/index.ts b/src/help/index.ts index ddfcb365..d3df7b91 100644 --- a/src/help/index.ts +++ b/src/help/index.ts @@ -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`) }