make some more arguments positive integers

This commit is contained in:
hroff-1902 2019-07-07 01:10:41 +03:00
parent d8f133aaf3
commit a65b5f8e02

View File

@ -107,7 +107,8 @@ AVAILABLE_CLI_OPTIONS = {
"max_open_trades": Arg( "max_open_trades": Arg(
'--max_open_trades', '--max_open_trades',
help='Specify max_open_trades to use.', help='Specify max_open_trades to use.',
type=int, type=check_int_positive,
metavar='INT',
), ),
"stake_amount": Arg( "stake_amount": Arg(
'--stake_amount', '--stake_amount',
@ -180,7 +181,7 @@ AVAILABLE_CLI_OPTIONS = {
"epochs": Arg( "epochs": Arg(
'-e', '--epochs', '-e', '--epochs',
help='Specify number of epochs (default: %(default)d).', help='Specify number of epochs (default: %(default)d).',
type=int, type=check_int_positive,
metavar='INT', metavar='INT',
default=constants.HYPEROPT_EPOCH, default=constants.HYPEROPT_EPOCH,
), ),
@ -280,7 +281,7 @@ AVAILABLE_CLI_OPTIONS = {
'--plot-limit', '--plot-limit',
help='Specify tick limit for plotting. Notice: too high values cause huge files. ' help='Specify tick limit for plotting. Notice: too high values cause huge files. '
'Default: %(default)s.', 'Default: %(default)s.',
type=int, type=check_int_positive,
metavar='INT', metavar='INT',
default=750, default=750,
), ),