Skip to content

Commit

Permalink
use strings.Repeat to repeat a space in formatting flags
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Nov 16, 2024
1 parent 8a09826 commit af0c3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func formatFlags(opts any) string {
} else {
sb.WriteString("=")
}
sb.WriteString(" "[:24-sb.Len()+m])
sb.WriteString(strings.Repeat(" ", 24-(sb.Len()-m)))
sb.WriteString(tag.Get("description"))
sb.WriteString("\n")
}
Expand Down

0 comments on commit af0c3da

Please sign in to comment.