From 1760a8dfbc16d3dcb2e94878c47214f860094dfd Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 31 Aug 2019 15:15:10 +0200 Subject: [PATCH] Use subparser-name to exclude from config requires --- freqtrade/configuration/arguments.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/configuration/arguments.py b/freqtrade/configuration/arguments.py index f77832387..2c814b342 100644 --- a/freqtrade/configuration/arguments.py +++ b/freqtrade/configuration/arguments.py @@ -40,7 +40,7 @@ ARGS_PLOT_DATAFRAME = ["pairs", "indicators1", "indicators2", "plot_limit", "db_ ARGS_PLOT_PROFIT = ["pairs", "timerange", "export", "exportfilename", "db_url", "trade_source", "ticker_interval"] -NO_CONF_REQURIED = ["start_download_data"] +NO_CONF_REQURIED = ["download-data", "plot-dataframe", "plot-profit"] class Arguments(object): @@ -79,8 +79,7 @@ class Arguments(object): # (see https://bugs.python.org/issue16399) # Allow no-config for certain commands (like downloading / plotting) if (not self._no_default_config and parsed_arg.config is None - and not (hasattr(parsed_arg, 'func') - and parsed_arg.func.__name__ in NO_CONF_REQURIED)): + and not ('subparser' in parsed_arg and parsed_arg.subparser in NO_CONF_REQURIED)): parsed_arg.config = [constants.DEFAULT_CONFIG] return parsed_arg