// We don't need to check whether this option exists or not, because this is already checked when
// parsing the configuration file.
// Now go through all the matching options and set them according to the values.
for(autooption:options->second){
if(option->getHasOptionBeenSet()){
// If the option was already set from the command line, we issue a warning and ignore the
// settings from the configuration file.
STORM_LOG_WARN("The option '"<<option->getLongName()<<" of module '"<<option->getModuleName()<<"' has been set in the configuration file, but was overriden on the command line.");
}else{
// If, however, the option has not been set yet, we try to assign values ot its arguments
// We don't need to check whether this option exists or not, because this is already checked when
// parsing the configuration file.
// Now go through all the matching options and set them according to the values.
for(autooption:options->second){
if(option->getHasOptionBeenSet()){
// If the option was already set from the command line, we issue a warning and ignore the
// settings from the configuration file.
STORM_LOG_WARN("The option '"<<option->getLongName()<<"' of module '"<<option->getModuleName()<<"' has been set in the configuration file '"<<configFilename<<"', but was overwritten on the command line."<<std::endl);
}else{
// If, however, the option has not been set yet, we try to assign values ot its arguments
STORM_LOG_THROW(moduleIterator!=moduleOptions.end(),storm::exceptions::IllegalFunctionCallException,"Cannot print help for unknown module '"<<moduleName<<"'.");
STORM_LOG_THROW(this->longNameToOptions.find(activeModule+":"+optionName)!=this->longNameToOptions.end(),storm::exceptions::OptionParserException,"Option assignment in configuration file '"<<filename<<" in line "<<lineNumber<<" refers to unknown option '"<<activeModule<<":"<<optionName<<"'.");
STORM_LOG_WARN_COND(result.find(fullOptionName)==result.end(),"Option '"<<fullOptionName<<"' is set in line "<<lineNumber<<" of configuration file "<<filename<<", but has been set before.");
// If the current line is an assignment, split the right-hand side of the assignment into parts
// enclosed by quotation marks.
if(containsAssignment){
@ -436,11 +440,12 @@ namespace storm {
boost::algorithm::trim_left(assignedValues);
}
// After successfully parsing the argument values, we store them in the result map.