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(
'-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',
)