make --days positive int only
This commit is contained in:
parent
dc0326db27
commit
cd60d6d99a
@ -470,7 +470,7 @@ class Arguments(object):
|
|||||||
'--days',
|
'--days',
|
||||||
help='Download data for given number of days.',
|
help='Download data for given number of days.',
|
||||||
dest='days',
|
dest='days',
|
||||||
type=int,
|
type=Arguments.check_int_positive,
|
||||||
metavar='INT',
|
metavar='INT',
|
||||||
)
|
)
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
|
Loading…
Reference in New Issue
Block a user