remove --error, now it's only --error-test (it needs to return True to be able to use it)

This commit is contained in:
Miroslav Stampar 2010-10-19 18:34:14 +00:00
parent 8d9201a3dc
commit 415524bd5a
2 changed files with 1 additions and 4 deletions

View File

@ -488,9 +488,6 @@ def cmdLineParser():
parser.add_option("--profile", dest="profile", action="store_true",
default=False, help=SUPPRESS_HELP)
parser.add_option("--error", dest="error", action="store_true",
default=False, help=SUPPRESS_HELP)
parser.add_option("--error-test", dest="errorTest",
action="store_true", default=False,
help=SUPPRESS_HELP)

View File

@ -392,7 +392,7 @@ def getValue(expression, blind=True, inband=True, error=False, fromUser=False, e
expression = expression.replace("DISTINCT ", "")
if error or conf.error:
if error or conf.errorTest:
value = __goError(expression)
if not value: