make --days positive int only

This commit is contained in:
hroff-1902 2019-06-11 10:10:21 +03:00
parent dc0326db27
commit cd60d6d99a

View File

@ -470,7 +470,7 @@ class Arguments(object):
'--days',
help='Download data for given number of days.',
dest='days',
type=int,
type=Arguments.check_int_positive,
metavar='INT',
)
self.parser.add_argument(