$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [boost program options] missing value validation
From: Andy F (andyf_at_[hidden])
Date: 2009-01-22 14:18:42
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, 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