[program_options] Specify the same flag multiple times
7 Apr
2009
7 Apr
'09
4:57 p.m.
I would like to be able to specify a flag multiple times on the command line. For instance, imagine a program that has two levels of verbosity. The first level of verbosity would be activated by specifying "-v" on the command line, and the second level of verbosity would be activated by specifying "-vv" or "-v -v" on the command line. Display verbose print statements: myProgram -v Display very verbose print statements: myProgram -vv In digging through the documentation, it is not evident to me how I can accomplish this with Boost.Program_Options. Any help would be appreciated. Thanks, Justin
5699
Age (days ago)
5699
Last active (days ago)
0 comments
1 participants
participants (1)
-
KSpam