From a65b5f8e0209cf38b70d558026db443652842cbb Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Sun, 7 Jul 2019 01:10:41 +0300 Subject: [PATCH] make some more arguments positive integers --- freqtrade/arguments.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index f64398443..2d3dc0793 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -107,7 +107,8 @@ AVAILABLE_CLI_OPTIONS = { "max_open_trades": Arg( '--max_open_trades', help='Specify max_open_trades to use.', - type=int, + type=check_int_positive, + metavar='INT', ), "stake_amount": Arg( '--stake_amount', @@ -180,7 +181,7 @@ AVAILABLE_CLI_OPTIONS = { "epochs": Arg( '-e', '--epochs', help='Specify number of epochs (default: %(default)d).', - type=int, + type=check_int_positive, metavar='INT', default=constants.HYPEROPT_EPOCH, ), @@ -280,7 +281,7 @@ AVAILABLE_CLI_OPTIONS = { '--plot-limit', help='Specify tick limit for plotting. Notice: too high values cause huge files. ' 'Default: %(default)s.', - type=int, + type=check_int_positive, metavar='INT', default=750, ),