Skip to content

Commit

Permalink
Update LegacyHelpFrameBuilder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
benpollarduk authored Dec 22, 2023
1 parent 8aa01ce commit d5a0b95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public IFrame Build(string title, string description, CommandHelp[] commandHelp,

foreach (var command in commandHelp)
{
if (!string.IsNullOrEmpty(command.Command) && !string.IsNullOrEmpty(command.Command))
if (!string.IsNullOrEmpty(command.Command) && !string.IsNullOrEmpty(command.Description))
builder.Append(lineStringBuilder.BuildWrappedPadded($"{command.Command}{lineStringBuilder.BuildWhitespace(30 - command.Command.Length)}- {command.Description}", width, false));
else if (!string.IsNullOrEmpty(command.Command) && string.IsNullOrEmpty(command.Description))
builder.Append(lineStringBuilder.BuildWrappedPadded(string.Empty, width, false));
Expand Down

0 comments on commit d5a0b95

Please sign in to comment.