def _format_epilog(commands):
    """Create a epilog string for the specified commands.

    Args:
        commands: Sequence of (func, name, description)

    Returns:
        str: Formatted list of commands and their descriptions
    """
    lines = []
    lines.append("Commands:")

    for command in commands:
        # Note: desc may be None or wrapped lines
        name = command[1]
        desc = command[2] or " "

        for index, item in enumerate(desc.splitlines()):
            item = item.strip()

            if index == 0:
                line = "  %-16s%s" % (name, item)
            else:
                line = " " * 18 + item

            lines.append(line)

    return '\r\n'.join(lines)