def _extract_options(line_part):
    """Return k/v options found in the part of the line

    The part of the line looks like k=v,k=v,k=2 ."""
    result = {}
    pairs = line_part.split(",")
    for pair in pairs:
        if "=" not in pair:
            continue
        parts = pair.split("=")
        key = parts[0].strip()
        value = parts[1].strip()
        result[key] = value
    return result