Skip to content

Commit

Permalink
Add argv param to the load_structured_config func
Browse files Browse the repository at this point in the history
  • Loading branch information
bdvllrs committed Nov 8, 2023
1 parent 0b92d9b commit 5007ab2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shimmer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def load_config(
load_dirs: list[str] | None = None,
use_cli: bool = True,
debug_mode: bool = False,
argv: Any = None,
argv: list[str] | None = None,
) -> Config:
config_path = Path(path)
if not config_path.is_dir():
Expand Down Expand Up @@ -88,6 +88,7 @@ def load_structured_config(
load_dirs: list[str] | None = None,
use_cli: bool = True,
debug_mode: bool = False,
argv: list[str] | None = None,
) -> T:
config = load_config(path, structure, load_dirs, use_cli, debug_mode)
config = load_config(path, structure, load_dirs, use_cli, debug_mode, argv)
return cast(T, config)

0 comments on commit 5007ab2

Please sign in to comment.