26 Feb
2007
26 Feb
'07
10:25 a.m.
On 2/26/07, Sebastian Weber
On Mon, 2007-02-26 at 10:49 +0100, Tarjei Knapstad wrote:
I can't seem to find any documentation on what kind of file formats are accepted when calling boost::program_options::parse_config_file(...)
Am is missing it or is it missing? :)
I think your are right about that missing piece of documentation. However, the format is quite easy:
long-variable-name = value
At least that's how i use it. Hope this helps. Nevertheless, it seems that you can not use unknown variables in your cfg-files.
Greetings,
Sebastian
Is it possible to somehow use an option which selects a configuration file: program --configuration-file my_config.conf with the same easiness as common tasks demonstrated in examples? Thank you. -el