18 Jul
2007
18 Jul
'07
5:02 p.m.
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