
26 Sep
2004
26 Sep
'04
1:07 p.m.
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