Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost program options] missing value validation
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-01-22 14:26:21


Andy F wrote:

> Vladimir Prus <vladimir <at> codesourcery.com> 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


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