From 30fcf2bd33af0ba03de671cbf7d44aa127329987 Mon Sep 17 00:00:00 2001 From: ricterz Date: Tue, 12 May 2015 22:54:15 +0800 Subject: [PATCH] add timeout param --- nhentai/cmdline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nhentai/cmdline.py b/nhentai/cmdline.py index 3d378d9..2f3b5a6 100644 --- a/nhentai/cmdline.py +++ b/nhentai/cmdline.py @@ -25,6 +25,8 @@ def cmd_parser(): help='path which save the dojinshi') parser.add_option('--threads', '-t', type='int', dest='threads', action='store', default=1, help='thread count of download dojinshi') + parser.add_option('--timeout', type='int', dest='timeout', action='store', default=30, + help='timeout of download dojinshi') args, _ = parser.parse_args() if args.ids: