def option_rep(optionname, optiondef):
    """Returns a textual representation of an option.

    option_rep('IndentCaseLabels', ('bool', []))
    => 'IndentCaseLabels bool'

    option_rep('PointerAlignment', ('PointerAlignmentStyle',
               [u'Left', u'Right', u'Middle']))
    => 'PointerAlignment PointerAlignmentStyle
               Left
               Right
               Middle'
    """
    optiontype, configs = optiondef
    fragments = [optionname + ' ' + optiontype]
    for c in configs:
        fragments.append(" " * 8 + c)
    rep = "\n".join(fragments)
    return rep