Minor update for an (Issue #254)

This commit is contained in:
Miroslav Stampar 2012-11-28 12:53:11 +01:00
parent 753d0f18bf
commit 35d1146fd1

View File

@ -1988,6 +1988,10 @@ def __basicOptionValidation():
errMsg = "option '--dump-format' accepts one of following values: %s" % ", ".join(getPublicTypeMembers(DUMP_FORMAT, True))
raise sqlmapSyntaxException, errMsg
if conf.dumpFormat != defaults.dumpFormat and not conf.dumpTable:
errMsg = "option '--dump-format' requires usage of switch '--dump'"
raise sqlmapSyntaxException, errMsg
if conf.skip and conf.testParameter:
errMsg = "option '--skip' is incompatible with option '-p'"
raise sqlmapSyntaxException, errMsg