def _update_from_arg(cfg, argdict, key):
    """Helper function for get_cfg."""
    for var in cfg[key]:
        if var in argdict and argdict[var] is not None:
            cfg[key][var] = argdict[var]
