aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
Diffstat (limited to 'pathod')
-rwxr-xr-xpathod7
1 files changed, 6 insertions, 1 deletions
diff --git a/pathod b/pathod
index 82a7edc0..91cd13e3 100755
--- a/pathod
+++ b/pathod
@@ -88,7 +88,8 @@ def main(parser, args):
noweb = args.noweb,
nocraft = args.nocraft,
noapi = args.noapi,
- nohang = args.nohang
+ nohang = args.nohang,
+ timeout = args.timeout
)
except pathod.PathodError, v:
parser.error(str(v))
@@ -135,6 +136,10 @@ if __name__ == "__main__":
help='Serve with SSL.'
)
parser.add_argument(
+ "-t", dest="timeout", type=int, default=None,
+ help="Connection timeout"
+ )
+ parser.add_argument(
"--limit-size", dest='sizelimit', default=None, type=str,
help='Size limit of served responses. Understands size suffixes, i.e. 100k.'
)