Fix parent label subcommand names not resolving
parent
694461a303
commit
697111cb1d
|
@ -64,11 +64,11 @@ export default class Util {
|
||||||
hasSubCommands = false; break;
|
hasSubCommands = false; break;
|
||||||
} else if (resolvedCommand.subcommands.has(args[0])) {
|
} else if (resolvedCommand.subcommands.has(args[0])) {
|
||||||
resolvedCommand = resolvedCommand.subcommands.get(args[0]);
|
resolvedCommand = resolvedCommand.subcommands.get(args[0]);
|
||||||
args.shift(); parentLabel += ` ${args[0]}`;
|
parentLabel += ` ${args[0]}`; args.shift();
|
||||||
} else {
|
} else {
|
||||||
for (const subCmd of resolvedCommand.subcommands.toArray()) {
|
for (const subCmd of resolvedCommand.subcommands.toArray()) {
|
||||||
if (subCmd.aliases.includes(args[0])) {
|
if (subCmd.aliases.includes(args[0])) {
|
||||||
resolvedCommand = subCmd; args.shift(); parentLabel += ` ${args[0]}`; break;
|
resolvedCommand = subCmd; parentLabel += ` ${args[0]}`; args.shift(); break;
|
||||||
} else {
|
} else {
|
||||||
hasSubCommands = false; break;
|
hasSubCommands = false; break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue