'Sets the option in target only if the given option was explicitly set'

def _set_config(self, target, option):

    opt_val = getattr(self.options, option, None)
    if (opt_val is not None):
        target[option] = opt_val
