From 8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 28 Sep 2012 11:38:49 +1200 Subject: Add pathoc -T to ignore timeouts. Also move -c to -C for consistency. --- pathoc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pathoc') diff --git a/pathoc b/pathoc index a2749a59..5932d4a4 100755 --- a/pathoc +++ b/pathoc @@ -35,7 +35,7 @@ if __name__ == "__main__": ) group = parser.add_argument_group('Controlling Output') group.add_argument( - "-c", dest="ignorecodes", type=str, default="", + "-C", dest="ignorecodes", type=str, default="", help="Comma-separated list of response codes to ignore" ) group.add_argument( @@ -54,6 +54,10 @@ if __name__ == "__main__": "-r", dest="showresp", action="store_true", default=False, help="Print full response" ) + group.add_argument( + "-T", dest="ignoretimeout", action="store_true", default=False, + help="Ignore timeouts" + ) group.add_argument( "-x", dest="hexdump", action="store_true", default=False, help="Output in hexdump format" @@ -94,7 +98,8 @@ if __name__ == "__main__": showresp=args.showresp, explain=args.explain, hexdump=args.hexdump, - ignorecodes=codes + ignorecodes=codes, + ignoretimeout=args.ignoretimeout ) sys.stdout.flush() if ret and args.oneshot: -- cgit v1.2.3