writeExampleConfigFile

Writes an example config file to the provided filename. If a struct member does not provide a default value then .init is used as the default value.

The only exception being arrays which would normally default to '[]' are instead simply left blank. If an array provides a default list then they are printed comma separated. The reason is that getopt expects such format instead of the brackets.

void
writeExampleConfigFile
(
ConfigType
)
(
const string filename
)

Parameters

filename string

Filename to write the example config file to

Meta