From 09e995ab5c78b8bd098e1330df7aa40972e0b1bb Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 14 Mar 2015 11:54:47 +1100 Subject: Improvements to pathoc repeat requests - Pathoc will now keep trying if connections failed - Add a -w option to specify a wait time between requests --- libpathod/cmdline.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpathod/cmdline.py') diff --git a/libpathod/cmdline.py b/libpathod/cmdline.py index 4a2390ed..7a82a429 100644 --- a/libpathod/cmdline.py +++ b/libpathod/cmdline.py @@ -50,6 +50,10 @@ def go_pathoc(): "-n", dest='repeat', default=1, type=int, metavar="N", help='Repeat N times. If 0 repeat for ever.' ) + parser.add_argument( + "-w", dest='wait', default=0, type=float, metavar="N", + help='Wait N seconds between each request.' + ) parser.add_argument( "-r", dest="random", action="store_true", default=False, help=""" -- cgit v1.2.3