def bool_yes_no(process, longname, flag, value):
    """ Phrase Boolean values as 'YES' or 'NO' """
    if value==True:
        return "YES"
    if value==False:
        return "NO"
    # Anything else wasn't a bool!
    raise ValueError("Flag value '%s' wasn't boolean." % repr(value))