cpptoml icon indicating copy to clipboard operation
cpptoml copied to clipboard

Read multiple files with duplicate entries

Open jkugelman opened this issue 6 years ago • 0 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).

jkugelman avatar Apr 30 '19 11:04 jkugelman