|
Boost : |
From: Michael van der Westhuizen (michael_at_[hidden])
Date: 2004-09-26 08:07:04
Vladimir Prus wrote:
> Jonathan Graehl wrote:
>
>
>>I grepped through the program_options source and couldn't find anything
>>about declaratively specifying required options (or even more
>>specifically, min/max # of occurrences), except for positional options.
>
>
> Does "min/max" number of occurrences makes much sense? In variables_map, an
> option is either present, or not, it cannot be present twice.
>
Yes, it does make sense. Two examples I can think of offhand are tcpdump
and nmap, both of which allow you to specify the -v flag multiple times
to increase verbosity.
> [snip]
Michael
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk