diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index 3075dd0fe..59123a14b 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -444,6 +444,7 @@ class Arguments(object): '-p', '--pairs', help='Show profits for only this pairs. Pairs are comma-separated.', dest='pairs', + required=True ) def download_data_options(self) -> None: diff --git a/freqtrade/tests/test_arguments.py b/freqtrade/tests/test_arguments.py index 78ca9d055..4c2bf708d 100644 --- a/freqtrade/tests/test_arguments.py +++ b/freqtrade/tests/test_arguments.py @@ -195,6 +195,7 @@ def test_plot_dataframe_options() -> None: '-p', 'UNITTEST/BTC', ] arguments = Arguments(args, '') + arguments.common_scripts_options() arguments.plot_dataframe_options() pargs = arguments.parse_args(True) assert pargs.indicators1 == "sma10,sma100" @@ -205,6 +206,7 @@ def test_plot_dataframe_options() -> None: # Pop pairs argument args = args[:-2] arguments = Arguments(args, '') + arguments.common_scripts_options() arguments.plot_dataframe_options() with pytest.raises(SystemExit, match=r'2'): arguments.parse_args(True)