Skip to content

Commit

Permalink
fixed function in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Feb 29, 2024
1 parent 56f56c3 commit 1190a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mochi/bedrock/bedrockctl/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def parse_config_from_args(args: List[str]):
while len(args) != 0:
arg = args[0]
args.pop(0)
if not arg.startswith("--config."):
continue
if len(args) == 0:
print(f"Error: configuration argument {arg} has no value")
raise typer.Exit(code=-1)
if not arg.startswith("--config."):
continue
value = args[0]
args.pop(0)
if value in ["True", "true"]:
Expand Down

0 comments on commit 1190a1d

Please sign in to comment.