@staticmethod
def __yes_no_only(s):
    """Helper for parameters expecting ['yes', 'no', 'only']"""
    s = str(s).lower()
    if s in ['true', 'yes']:
        s = 'yes'
    elif s in ['false', 'no']:
        s = 'no'
    return s
