Skip to content
Snippets Groups Projects
Commit 89ba367b authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

*** empty log message ***

parent 65027d81
No related branches found
No related tags found
No related merge requests found
#include "options.h"
// $Id$
namespace Utilities {
bool OptionParser::check_compulsory_arguments(bool verbose)
{
bool okay = true;
for(Options::iterator option = options_.begin();
option != options_.end();
option++) {
if((*option)->compulsory() && (*option)->unset()) {
if(okay) {
if(verbose) {
cerr << "***************************************************" << endl;
cerr << "The following COMPULSORY options have not been set:" << endl;
}
okay = false;
}
if(verbose)
cerr << **option << endl;
}
}
if(!okay && verbose)
cerr << "***************************************************" << endl;
return okay;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment