Boost logo

Boost Users :

From: Tarjei Knapstad (tarjei.knapstad_at_[hidden])
Date: 2007-02-26 05:26:39


On 2/26/07, Sebastian Weber <sebastian.weber_at_[hidden]> wrote:
> 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.
>

Thanks Sebastian.

I would consider not allowing unknown variables in a config file to be
correct behaviour. (The program should fail if you specify unknown
arguments on the command line, and the config file is really just a
substitue for the command line options).

--
Tarjei

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net