+def makeParser(usage=""):
+ parser = optparse.OptionParser(usage=usage)
+ parser.add_option("--cache", action="store_true", dest="cachePages")
+ parser.add_option("--withoutsense", action="store_false", dest="withSense")
+ parser.add_option("--flank", type="int", dest="flankBP")
+
+ configParser = getConfigParser()
+ section = "getSNPGeneInfo"
+ doCache = getConfigBoolOption(configParser, section, "doCache", False)
+ withSense = getConfigBoolOption(configParser, section, "withSense", True)
+ flankBP = getConfigIntOption(configParser, section, "flankBP", 0)
+
+ parser.set_defaults(doCache=doCache, withSense=withSense, flankBP=flankBP)
+
+ return parser
+
+