
21 Sep
2006
21 Sep
'06
1:58 a.m.
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. If you happen to have some experience, please let me know and share your experience with me. Thanks, Peng