mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-04 21:30:24 +00:00
chore: add missing fields
This commit is contained in:
@@ -259,6 +259,7 @@ ARGS_RECURSIVE_ANALYSIS = ["timeframe", "timerange", "dataformat_ohlcv", "pairs"
|
|||||||
# Command level configs - keep at the bottom of the above definitions
|
# Command level configs - keep at the bottom of the above definitions
|
||||||
NO_CONF_REQURIED = [
|
NO_CONF_REQURIED = [
|
||||||
"backtest-filter",
|
"backtest-filter",
|
||||||
|
"backtesting-show",
|
||||||
"convert-data",
|
"convert-data",
|
||||||
"convert-trade-data",
|
"convert-trade-data",
|
||||||
"download-data",
|
"download-data",
|
||||||
@@ -274,6 +275,7 @@ NO_CONF_REQURIED = [
|
|||||||
"plot-dataframe",
|
"plot-dataframe",
|
||||||
"plot-profit",
|
"plot-profit",
|
||||||
"show-trades",
|
"show-trades",
|
||||||
|
"install-ui",
|
||||||
"strategy-updater",
|
"strategy-updater",
|
||||||
"trades-to-ohlcv",
|
"trades-to-ohlcv",
|
||||||
]
|
]
|
||||||
@@ -325,7 +327,7 @@ class Arguments:
|
|||||||
cfgfile = Path.cwd() / DEFAULT_CONFIG
|
cfgfile = Path.cwd() / DEFAULT_CONFIG
|
||||||
conf_optional = "command" in parsed_arg and parsed_arg.command in NO_CONF_REQURIED
|
conf_optional = "command" in parsed_arg and parsed_arg.command in NO_CONF_REQURIED
|
||||||
if cfgfile.is_file() or not conf_optional:
|
if cfgfile.is_file() or not conf_optional:
|
||||||
# Only inject config if the file exists, or if the config is optional
|
# Only inject config if the file exists, or if the config is required
|
||||||
parsed_arg.config = [DEFAULT_CONFIG]
|
parsed_arg.config = [DEFAULT_CONFIG]
|
||||||
|
|
||||||
return parsed_arg
|
return parsed_arg
|
||||||
|
|||||||
Reference in New Issue
Block a user