
22 Jan
2009
22 Jan
'09
7:26 p.m.
Andy F wrote:
Vladimir Prus
writes: What is 'unknown exception'? You should have a try/catch block around use of po::store, and the what() method of the caught exception should contain something useful.
- Volodya
Volodya,
I get boost::program_options::invalid_command_line_syntax. I guess my question is this:
If I want to make it so that if the user does not provide a value for the option,
Seems like some part is left out of our question "if the user does not provide a value", then what?
do I need to basically handle that in the catch block of the exception handling, or is there some other way of doing it upfront?
- Volodya