
22 May
2010
22 May
'10
6:49 a.m.
Vijay Samuel wrote:
Hi, I have a query regarding boost:: program_options. Is it possible for multiple programs to use a single configuration file? If so, then how?
I guess the straightforward solution is to declare the options twice -- once per each program? If that's not good, you can create a library, used by both program, which registers the options.
I have two programs which have to use a single configuration file. Both programs have both similar and unique options but have different default values.
I imagine that using a helper library, you should be able to adjust default values depending on which program asks for the options to be registered. - Volodya