Skip to content

Commit

Permalink
🐛 Fixed logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Nov 25, 2023
1 parent cb35fef commit f04de7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions idae/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ def run(
--clean can be used without 'SCRIPT'
"""
if clean:
clean_venvs()
console.print("[green bold]Cleaned all venvs[/]")
if script is None:
if clean:
clean_venvs()
console.print("[green bold]Cleaned all venvs[/]")
raise typer.Exit(code=0)
msg = "Missing argument 'SCRIPT'."
raise UsageError(msg)

Check warning on line 79 in idae/cli.py

View check run for this annotation

Codecov / codecov/patch

idae/cli.py#L78-L79

Added lines #L78 - L79 were not covered by tests
Expand Down

0 comments on commit f04de7f

Please sign in to comment.