From fe28addb51142acb9a9a42f67299ca7ab203382f Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 11 Feb 2018 19:16:21 +0200 Subject: [PATCH] specify allowed values for --spaces flag --- freqtrade/misc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/freqtrade/misc.py b/freqtrade/misc.py index 9c7e2dd9f..b24f961e0 100644 --- a/freqtrade/misc.py +++ b/freqtrade/misc.py @@ -282,10 +282,11 @@ def hyperopt_options(parser: argparse.ArgumentParser) -> None: ) parser.add_argument( '-s', '--spaces', - help='Specify which parameters to hyperopt. Comma separate list. \ - Allowed values: all, buy, sell, roi, stoploss. Default: $(default)s', + help='Specify which parameters to hyperopt. Space separate list. \ + Default: %(default)s', + choices=['all', 'buy', 'roi', 'stoploss'], default='all', - type=str, + nargs='+', dest='spaces', )