Fix argument spelling

This commit is contained in:
Matthias 2022-04-23 09:10:15 +02:00
parent 64e6729ae9
commit c6927a1501
3 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,8 @@ ARGS_HYPEROPT = ARGS_COMMON_OPTIMIZE + ["hyperopt", "hyperopt_path",
ARGS_EDGE = ARGS_COMMON_OPTIMIZE + ["stoploss_range"]
ARGS_LIST_STRATEGIES = ["strategy_path", "print_one_column", "print_colorized"]
ARGS_LIST_STRATEGIES = ["strategy_path", "print_one_column", "print_colorized",
"recursive_strategy_search"]
ARGS_LIST_HYPEROPTS = ["hyperopt_path", "print_one_column", "print_colorized"]

View File

@ -83,9 +83,9 @@ AVAILABLE_CLI_OPTIONS = {
action='store_true',
),
"recursive_strategy_search": Arg(
'--recursive_strategy_search',
'--recursive-strategy-search',
help='Recursively search for a strategy in the strategies folder.',
metavar='store_true',
action='store_true',
),
# Main options
"strategy": Arg(

View File

@ -44,7 +44,7 @@ class IResolver:
@classmethod
def build_search_paths(cls, config: Dict[str, Any], user_subdir: Optional[str] = None,
extra_dirs: Optional[List[str]] = None) -> List[Path]:
extra_dirs: List[str] = []) -> List[Path]:
abs_paths: List[Path] = []
if cls.initial_search_path:
@ -53,10 +53,9 @@ class IResolver:
if user_subdir:
abs_paths.insert(0, config['user_data_dir'].joinpath(user_subdir))
if extra_dirs:
# Add extra directory to the top of the search paths
for dir in extra_dirs:
abs_paths.insert(0, Path(dir).resolve())
# Add extra directory to the top of the search paths
for dir in extra_dirs:
abs_paths.insert(0, Path(dir).resolve())
return abs_paths