String toShortArgs(ColorFormatter colors) {
            StringBuilder builder = new StringBuilder();
            builder.append('[');
            if (longName != null) {
                builder.append(colors.style(longName, ColorTheme.LITERAL));
                if (shortName != null) {
                    builder.append(" | ");
                }
            }
            if (shortName != null) {
                builder.append(colors.style(shortName, ColorTheme.LITERAL));
            }
            if (exampleValue != null) {
                builder.append(' ').append(exampleValue);
            }
            builder.append(']');
            return 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