def _parse_options(options):
    """Parse an options value from a connection string.

    :param str options: options string
    :return: dictionary of options keys/values
     :rtype: dict
    """
    o_dict = {}
    options_val = options.strip("'")
    options = [o.strip() for o in options_val.split('-c ')]
    for option in options:
        if not option:
            continue
        k, v = option.split('=', 1)
        o_dict[k] = v
    return o_dict