|
Boost Users : |
From: Torrey Pines (n.torrey.pines_at_[hidden])
Date: 2007-02-27 20:16:21
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?
Thanks
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