specify allowed values for --spaces flag

This commit is contained in:
Janne Sinivirta 2018-02-11 19:16:21 +02:00
parent d74543ac32
commit fe28addb51

View File

@ -282,10 +282,11 @@ def hyperopt_options(parser: argparse.ArgumentParser) -> None:
) )
parser.add_argument( parser.add_argument(
'-s', '--spaces', '-s', '--spaces',
help='Specify which parameters to hyperopt. Comma separate list. \ help='Specify which parameters to hyperopt. Space separate list. \
Allowed values: all, buy, sell, roi, stoploss. Default: $(default)s', Default: %(default)s',
choices=['all', 'buy', 'roi', 'stoploss'],
default='all', default='all',
type=str, nargs='+',
dest='spaces', dest='spaces',
) )