def get_option(name):
    """
    Get package option

    Parameters
    ----------
    name : str
        Name of the option
    """
    d = globals()
    if name in {'get_option', 'set_option'} or name not in d:
        from ..exceptions import PlotnineError
        raise PlotnineError('Unknown option {}'.format(name))
    return d[name]
