Skip to content

Commit

Permalink
fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Oct 4, 2024
1 parent 9bae12b commit 00b24f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/custom/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class CustomHelp extends Help {

const rawName = command.id.includes(":") ? command.id.split(":")[1] : command.id;
const name = chalk.bold.blueBright(rawName);
const prePadding = " ".repeat(Math.max(1,this.pre_pad - command.id.length));
const prePadding = " ".repeat(Math.max(1,this.pre_pad - rawName.length));
const args =
Object.keys(command.args).length > 0
? Object.entries(command.args)
Expand Down Expand Up @@ -135,7 +135,7 @@ export default class CustomHelp extends Help {
const { name } = topic;
const commands = this.sortedCommands.filter((c) => c.id.startsWith(name + ":"));
for (const command of commands) {
if (command.id.length > this.pre_pad) this.pre_pad = command.id.length;
if (command.id.split(":")[1].length > this.pre_pad) this.pre_pad = command.id.split(":")[1].length;
const args =
Object.keys(command.args).length > 0
? Object.entries(command.args)
Expand Down

0 comments on commit 00b24f3

Please sign in to comment.