$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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