Fix argument spelling
This commit is contained in:
parent
64e6729ae9
commit
c6927a1501
@ -37,7 +37,8 @@ ARGS_HYPEROPT = ARGS_COMMON_OPTIMIZE + ["hyperopt", "hyperopt_path",
|
|||||||
|
|
||||||
ARGS_EDGE = ARGS_COMMON_OPTIMIZE + ["stoploss_range"]
|
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"]
|
ARGS_LIST_HYPEROPTS = ["hyperopt_path", "print_one_column", "print_colorized"]
|
||||||
|
|
||||||
|
@ -83,9 +83,9 @@ AVAILABLE_CLI_OPTIONS = {
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
),
|
),
|
||||||
"recursive_strategy_search": Arg(
|
"recursive_strategy_search": Arg(
|
||||||
'--recursive_strategy_search',
|
'--recursive-strategy-search',
|
||||||
help='Recursively search for a strategy in the strategies folder.',
|
help='Recursively search for a strategy in the strategies folder.',
|
||||||
metavar='store_true',
|
action='store_true',
|
||||||
),
|
),
|
||||||
# Main options
|
# Main options
|
||||||
"strategy": Arg(
|
"strategy": Arg(
|
||||||
|
@ -44,7 +44,7 @@ class IResolver:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build_search_paths(cls, config: Dict[str, Any], user_subdir: Optional[str] = None,
|
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] = []
|
abs_paths: List[Path] = []
|
||||||
if cls.initial_search_path:
|
if cls.initial_search_path:
|
||||||
@ -53,10 +53,9 @@ class IResolver:
|
|||||||
if user_subdir:
|
if user_subdir:
|
||||||
abs_paths.insert(0, config['user_data_dir'].joinpath(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
|
||||||
# Add extra directory to the top of the search paths
|
for dir in extra_dirs:
|
||||||
for dir in extra_dirs:
|
abs_paths.insert(0, Path(dir).resolve())
|
||||||
abs_paths.insert(0, Path(dir).resolve())
|
|
||||||
|
|
||||||
return abs_paths
|
return abs_paths
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user