skystrife / cpptoml

cpptoml is a header-only library for parsing TOML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read multiple files with duplicate entries

jkugelman opened this issue · comments

Is there a way to read in multiple TOML files into a single cpptoml::table? I want to support Linux-style .d directories where users can drop in extra configuration files. That means they could override the settings from earlier files.

Could be any of these:

  • A way to disable duplicate entry checks.
  • A way to merge two tables into one (in library or how to do it myself).

I also asked this on Stack Overflow (https://stackoverflow.com/questions/55919577/combine-multiple-toml-files-d-directory-support).