Boost logo

Boost Users :

Subject: [Boost-users] [program_options] Specify the same flag multiple times
From: KSpam (keesling_spam_at_[hidden])
Date: 2009-04-07 12:57:08


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


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