
30 Apr
2009
30 Apr
'09
6:08 p.m.
If I have a list of 10 parameters, and all are required, I end up with a giant block of these: if(!vm.count("input")) { std::cout << "Input was not set." << std::endl; exit(-1); } Is there a way to do something like: desc.add_options() ("input", po::valuestd::string(&InputFile)->required(), "Set input file.") That will perform that check for me? Thanks, David