|
Boost Users : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-07-20 05:54:01
Olaf van der Spek wrote:
> Hi,
>
> [1] says:
>> The library does not provide direct support for response files, so you'll
>> need to write some extra code.
>
> But this code does the trick without much extra code:
> std::ifstream is(vm["conf_file"].as<std::string>().c_str());
> po::store(po::parse_config_file(is, desc), vm);
>
> Or is a response file something else? In that case, maybe that should
> be mentioned, as I think for lots of users this is enough.
Quoting the docs:
A response file is just a configuration file which uses the
same syntax as the command line
So, response file might contain:
--foo=bar
while regular config file has different syntax. Also, it is
typical to use response files with the @filename syntax, which
is also not readily available.
- Volodya
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