From 80826ef0720f44a4bbefde29108c077360e53828 Mon Sep 17 00:00:00 2001 From: HJK Date: Thu, 24 Jan 2019 10:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E9=87=8F=E4=B8=8A=E9=99=9050?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/cli.py b/utils/cli.py index 2ed592b..c1f5fa1 100644 --- a/utils/cli.py +++ b/utils/cli.py @@ -43,7 +43,8 @@ def set_opts(args): elif o in ('-s', '--source'): glovar.set_option('source', a) elif o in ('-c', '--count'): - glovar.set_option('count', int(a)) + c = int(a) if int(a) < 51 else 50 + glovar.set_option('count', c) elif o in ('-o', '--outdir'): glovar.set_option('outdir', a) elif o in ('-m', '--merge'):