Mercurial > hg
comparison contrib/catapipe.py @ 39513:e9706686451b
contrib: fix catapipe output argument documentation
Differential Revision: https://phab.mercurial-scm.org/D4515
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 07 Sep 2018 17:51:07 -0400 |
parents | 9a81f126f9fa |
children | b29ec19748a7 |
comparison
equal
deleted
inserted
replaced
39512:ec0a2601bc76 | 39513:e9706686451b |
---|---|
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) |