Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6314d64

Browse files
committed
Renaming --binary to --binary-fields
1 parent dd6f50a commit 6314d64

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def nullAndCastField(self, field):
344344
else:
345345
nulledCastedField = rootQuery.isnull.query % nulledCastedField
346346

347-
if conf.hexConvert or conf.binary and field in conf.binary.split(','):
347+
if conf.hexConvert or conf.binaryFields and field in conf.binaryFields.split(','):
348348
nulledCastedField = self.hexConvertField(nulledCastedField)
349349

350350
return nulledCastedField

lib/core/dicts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@
205205
DEPRECATED_OPTIONS = {
206206
"--replicate": "use '--dump-format=SQLITE' instead",
207207
"--no-unescape": "use '--no-escape' instead",
208+
"--binary": "use '--binary-fields' instead",
208209
"--check-payload": None,
209210
}
210211

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def cmdLineParser():
665665
parser.add_option("--profile", dest="profile", action="store_true",
666666
help=SUPPRESS_HELP)
667667

668-
parser.add_option("--binary", dest="binary",
668+
parser.add_option("--binary-fields", dest="binaryFields",
669669
help=SUPPRESS_HELP)
670670

671671
parser.add_option("--cpu-throttle", dest="cpuThrottle", type="int",

0 commit comments

Comments
 (0)