28 Feb
2007
28 Feb
'07
6:55 a.m.
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