
22 Jan
2009
22 Jan
'09
7:18 p.m.
Vladimir Prus
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, 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? Thanks, -Andy