def _get_config_file_options(self, args, validate_config_permissions=False):
        """
        Parse the config and return kwargs which can be passed to the Client
        constructor.

        :rtype: ``dict``
        """
        rc_options = self._parse_config_file(
            args=args, validate_config_permissions=validate_config_permissions
        )
        result = {}
        for kwarg_name, (section, option) in six.iteritems(
            CONFIG_OPTION_TO_CLIENT_KWARGS_MAP
        ):
            result[kwarg_name] = rc_options.get(section, {}).get(option, None)

        return result

        Parse the config and return kwargs which can be passed to the Client
        constructor.

        :rtype: ``dict``
        
st2client/st2client/base.py