def merge_argparse_args_into_config(self, args):
        """Merges the args returned by argparse.ArgumentParser into the config.

        Keyword arguments:
          args -- The args object returned by argsparse.parse_args().

        Returns:
          dict -- Dictionary object of the entire config.

        """
        for option in self.spec.options:
            try:
                # If the value exists in args and is set, then update the
                # config's value
                value = getattr(args, option)
                if value is not None:
                    self.config[option] = value
            except __HOLE__:
                self.logger.debug(
                    "Option %s not in CLI arguments -- not updated" % option
                )

        return self.config
dataset/ETHPy150Open JohnMaguire/Cardinal/cardinal/config.py/ConfigParser.merge_argparse_args_into_config