public void print(ColorFormatter colors, CliPrinter printer) {
        LineWrapper builder = new LineWrapper(maxWidth);

        builder.appendWithinLine("Usage: ")
                .appendWithinLine(colors.style(name, ColorTheme.EM_UNDERLINE))
                .space();

        // Calculate the column manually to account for possible styles interfering with the current column number.
        builder.indent("Usage: ".length() + name.length() + 1);

        for (Arg arg : args) {
            builder.appendWithinLine(arg.toShortArgs(colors)).space();
        }

        if (positional != null) {
            builder.appendWithinLine(positional.toShortArgs(colors));
        }

        builder.indent(0).newLine();
        if (summary != null) {
            builder.newLine().appendText(summary, 0);
        }

        builder.indent(4);
        builder.newLine();

        for (Arg arg : args) {
            writeArgHelp(colors, builder, arg);
        }

        if (positional != null) {
            writeArgHelp(colors, builder, positional);
        }

        if (!StringUtils.isEmpty(documentation)) {
            builder.indent(0).newLine().appendText(documentation, 0);
        }

        printer.println(builder.toString());
    }
Prints the generated help to the given printer.

@param colors Color formatter.
@param printer CliPrinter to write to.
smithy-cli/src/main/java/software/amazon/smithy/cli/HelpPrinter.java