Revision f26348de parameters_parser.py

View differences:

parameters_parser.py
75 75
                    return self.neededParams[paramName]
76 76
        for pname, pvalue in self.optionalParamsNames.items():
77 77
            if pvalue[0] == paramName:
78
                if paramName in self.neededParams:
78
                if paramName in self.optionalParams:
79 79
                    return self.optionalParams[paramName]
80
                else:
81
                    return pvalue[2]
82
        print >> sys.stderr, "Coding error: param", paramName,"is not",\
83
            "among the available options"
80 84
        sys.exit(1)
81 85

  
82 86
    def printConf(self):

Also available in: Unified diff