Adding (for now hidden) option --binary (works like -C but deliberately retrieves data in hex format and displays in hex format)

This commit is contained in:
Miroslav Stampar 2013-02-13 09:56:44 +01:00
parent 1d42aba01e
commit 8b4f72322a
2 changed files with 4 additions and 1 deletions

View File

@ -344,7 +344,7 @@ class Agent(object):
else: else:
nulledCastedField = rootQuery.isnull.query % nulledCastedField nulledCastedField = rootQuery.isnull.query % nulledCastedField
if conf.hexConvert: if conf.hexConvert or conf.binary and field in conf.binary.split(','):
nulledCastedField = self.hexConvertField(nulledCastedField) nulledCastedField = self.hexConvertField(nulledCastedField)
return nulledCastedField return nulledCastedField

View File

@ -665,6 +665,9 @@ def cmdLineParser():
parser.add_option("--profile", dest="profile", action="store_true", parser.add_option("--profile", dest="profile", action="store_true",
help=SUPPRESS_HELP) help=SUPPRESS_HELP)
parser.add_option("--binary", dest="binary",
help=SUPPRESS_HELP)
parser.add_option("--cpu-throttle", dest="cpuThrottle", type="int", parser.add_option("--cpu-throttle", dest="cpuThrottle", type="int",
help=SUPPRESS_HELP) help=SUPPRESS_HELP)