Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenlu committed Dec 28, 2023
1 parent b70c82d commit 386eba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atlas_provider_sqlalchemy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def run(dialect: Dialect, path: Path, debug: bool = False) -> Type[DeclarativeBa


@app.command()
def load(dialect: Dialect = Dialect.mysql, path: Optional[Path] = typer.Option(None), debug: bool = False):
def load(dialect: Dialect = Dialect.mysql,
path: Optional[Path] = typer.Option(None, exists=True, help="Path to directory of the sqlalchemy models."),
debug: bool = True):
if path is None:
path = Path(os.getcwd())
elif not path.exists():
raise typer.BadParameter(f'Path {path} does not exist.')
run(dialect, path, debug)


Expand Down

0 comments on commit 386eba6

Please sign in to comment.