fix crash when backtest-result.json not exist

This commit is contained in:
AxelCh
2019-01-23 14:11:05 -04:00
committed by Matthias
parent 06e0616fb0
commit eec7276393
5 changed files with 473 additions and 389 deletions

View File

@@ -352,9 +352,9 @@ class Arguments(object):
Parses given arguments for scripts.
"""
self.parser.add_argument(
'-p', '--pair',
'-p', '--pairs',
help='Show profits for only this pairs. Pairs are comma-separated.',
dest='pair',
dest='pairs',
default=None
)

View File

@@ -47,7 +47,7 @@ def test_scripts_options() -> None:
arguments = Arguments(['-p', 'ETH/BTC'], '')
arguments.scripts_options()
args = arguments.get_parsed_arg()
assert args.pair == 'ETH/BTC'
assert args.pairs == 'ETH/BTC'
def test_parse_args_version() -> None: