diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go index bdeb7e38e0..bd50498286 100644 --- a/internal/flags/helpers.go +++ b/internal/flags/helpers.go @@ -180,6 +180,13 @@ func FlagString(f cli.Flag) string { } } +func pad(s string, length int) string { + if len(s) < length { + s += strings.Repeat(" ", length-len(s)) + } + return s +} + func indent(s string, nspace int) string { ind := strings.Repeat(" ", nspace) return ind + strings.ReplaceAll(s, "\n", "\n"+ind)