def get_config_for(args, component, prefix=''):
    """ Returns a dictionary of option value for a given component
    
    See :func:`arguments_from_optionable` documentation
    """
    config = {}
    vargs = vars(args)
    for option in component.options:
        if component.options[option].hidden:
            continue
        config[option] = vargs['%s%s' % (prefix, option)]
    return config
