Skip to content

Commit

Permalink
数量上限50
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHJK committed Jan 24, 2019
1 parent d6888cb commit 80826ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 80826ef

Please sign in to comment.