added optimization switch (-o)

This commit is contained in:
Miroslav Stampar 2010-09-16 10:12:53 +00:00
parent bfffd5e333
commit 6259114c02
2 changed files with 7 additions and 0 deletions

View File

@ -96,6 +96,10 @@ def start():
if not conf.start:
return
if conf.optimize:
conf.useCommonPrediction = conf.useNullConnection = True
if conf.smokeTest:
smokeTest()

View File

@ -467,6 +467,9 @@ def cmdLineParser():
parser.add_option("--null-connection", dest="useNullConnection", action="store_true",
help=SUPPRESS_HELP)
parser.add_option("-o", dest="optimize", action="store_true",
help=SUPPRESS_HELP)
parser.add_option("--smoke-test", dest="smokeTest", action="store_true",
help=SUPPRESS_HELP)