From 697111cb1df0c8b014a788dad4f305d236848e29 Mon Sep 17 00:00:00 2001 From: Bsian Date: Fri, 1 Nov 2019 00:24:08 +0000 Subject: [PATCH] Fix parent label subcommand names not resolving --- src/class/Util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index beb60f9..0f0bedb 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -64,11 +64,11 @@ export default class Util { hasSubCommands = false; break; } else if (resolvedCommand.subcommands.has(args[0])) { resolvedCommand = resolvedCommand.subcommands.get(args[0]); - args.shift(); parentLabel += ` ${args[0]}`; + parentLabel += ` ${args[0]}`; args.shift(); } else { for (const subCmd of resolvedCommand.subcommands.toArray()) { if (subCmd.aliases.includes(args[0])) { - resolvedCommand = subCmd; args.shift(); parentLabel += ` ${args[0]}`; break; + resolvedCommand = subCmd; parentLabel += ` ${args[0]}`; args.shift(); break; } else { hasSubCommands = false; break; }