|
Boost Users : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-02-28 01:55:35
Torrey Pines wrote:
> Hi
>
> My program has a bunch of required arguments. I grouped them into one
> options_description:
>
> options_description required("Required options");
> required.add_options() /* .... */ ;
>
> // ...
>
> options_description desc("Allowed options");
> desc.add(required).add(other);
>
> I'd like to check that all required arguments are in fact supplied
> without having to do
>
> if(vm.count("arg1") == 0) {
> cerr << "usage error: arg1 is required\n";
> return 1;
> }
>
> for each of them. Any suggestions?
Nope. This is planned feature, not implemented at the moment.
Sorry,
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