in plugins/traffic_dump/post_process.py [0:0]
def parse_args():
''' Parse the command line arguments.
'''
parser = argparse.ArgumentParser(description=description)
parser.add_argument(
"in_dir",
type=str,
help='''The input directory of traffic_dump replay
files. The expectation is that this will contain
sub-directories that themselves contain replay files.
This is written to accommodate the directory populated
by traffic_dump via the --logdir option.''')
parser.add_argument("out_dir", type=str, help="The output directory of post processed replay files.")
parser.add_argument(
"-n",
"--num_sessions",
type=int,
default=10,
help='''The maximum number of sessions merged into
single replay output files. The default is 10.''')
parser.add_argument(
"--no-human-readable",
action="store_true",
help='''By default, post processor will generate replay
files that are spaced out in a human readable format.
This turns off that behavior and leaves the files as
single-line entries.''')
parser.add_argument(
"--no-fabricate-proxy-requests",
action="store_true",
help='''By default, post processor will fabricate proxy
requests and server responses for transactions served
out of the proxy. Presumably in replay conditions,
these fabricated requests and responses will not hurt
anything because the Proxy Verifier server will not
notice if the proxy replies locally in replay
conditions. However, if it doesn't reply locally, then
the server will not know how to reply to these
requests. Using this option turns off this fabrication
behavior.''')
parser.add_argument("-j", "--num_threads", type=int, default=32, help='''The maximum number of threads to use.''')