
21 Sep
2006
21 Sep
'06
9:14 p.m.
Peng Yu escreveu:
Hi,
Suppose that I have program option set U. I have many programs which uses a subset of U as their options.
Some of them share the same subset. For now, I code all the options in the main function like the one in the tutorial http://www.boost.org/doc/html/program_options/tutorial.html
However, there is a problem when I have a lot programs with similar options. I would like to factor out the common code. But I don't have an idea how to do it in a good way.
I think the "Multiple Sources" section of the tutorial describes what you want. -- Pedro LamarĂ£o