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