equal
deleted
inserted
replaced
43 def main(): |
43 def main(): |
44 parser = argparse.ArgumentParser() |
44 parser = argparse.ArgumentParser() |
45 parser.add_argument('pipe', type=str, nargs=1, |
45 parser.add_argument('pipe', type=str, nargs=1, |
46 help='Path of named pipe to create and listen on.') |
46 help='Path of named pipe to create and listen on.') |
47 parser.add_argument('output', default='trace.json', type=str, nargs='?', |
47 parser.add_argument('output', default='trace.json', type=str, nargs='?', |
48 help='Path of named pipe to create and listen on.') |
48 help='Path of json file to create where the traces ' |
|
49 'will be stored.') |
49 parser.add_argument('--debug', default=False, action='store_true', |
50 parser.add_argument('--debug', default=False, action='store_true', |
50 help='Print useful debug messages') |
51 help='Print useful debug messages') |
51 args = parser.parse_args() |
52 args = parser.parse_args() |
52 fn = args.pipe[0] |
53 fn = args.pipe[0] |
53 os.mkfifo(fn) |
54 os.mkfifo(fn) |