Boost logo

Boost Users :

From: Bryan Green (bgreen_at_[hidden])
Date: 2007-07-24 12:12:52


On Tue, Jul 24, 2007 at 09:02:02AM +0100, Steven Mackenzie wrote:
> Very useful to me, thanks!
>
> I'm guessing that the implicit_value is distinct from the default_value, so that
> the default can be set seperately if the option is completely absent from the
> command line?

That is the idea. I just tested it, and it appears to work as expected.

> My worry would be explaining the different command line syntax for applications
> with this type of option to my users, but I understand why it is necessary.
 
Hmm, perhaps you could look at the getopt_long manpage for inspiration.
I'm not sure how great my 'name()' method is for generating the usage
statement. Ideas welcome.

-Bryan


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