def p_cuesheet(t):
    """cuesheet : files
                | cuesheet_items files"""
    from audiotools.cue import Cuesheet
    if len(t) == 2:
        t[0] = Cuesheet(files=t[1])
    else:
        args = {}
        for key, value in t[1]:
            args[key] = value
        t[0] = Cuesheet(files=t[2], **args)
