Boost logo

Boost Users :

From: elviin (elviin_at_[hidden])
Date: 2007-02-26 05:25:55


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.
>
> 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


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