Boost logo

Boost Users :

From: Bryan Green (bgreen_at_[hidden])
Date: 2007-07-18 13:02:28


Niko Vuokko writes:
> Steven Mackenzie wrote:
>
> zero_tokens: As I understand, this property is used with flags that don't
> get any arguments such as -v [--version] could be.

What then is the difference between these two descriptions:

a) ("verbose", value<string>()->zero_token(), "verbosity level")

b) ("verbose", "verbosity level")

And why is 'value<string>' used? Does the string ever get set to something?
((a) is from the documentation).

While I'm on the subject, you sometimes see something like the following:

./prog -vvv
  or
./prog -v -v -v

This would *increment* the verbosity level three times. I can't see how to
replicate this in program_options.

-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