Boost logo

Boost Users :

From: Peng Yu (pengyu.ut_at_[hidden])
Date: 2006-03-28 20:13:23


The program_options package ease the way to implement the program cmd
interface. But what I found is that as the interface getting bigger the
main() program gets longer and longer and is hard to read, because a lot of
conditional branch statements have to be used.

In general, the declaration of the options are at the beginning of the
program and the use of the options are at somewhere afterwards. This cause
the program hard to maintain.

I'm wondering if there is any OO way to handle this problem. Then the main
program could be easily maintained and understood.


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