Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
chaichontat committed Mar 5, 2024
1 parent 3f8b345 commit c4b2aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

@click.command()
@click.argument("tobench", type=str, nargs=-1)
@click.option("--path", "-p", type=click.Path(exists=True, dir_okay=True), default=".")
@click.option(
"--path", "-p", type=click.Path(exists=True, dir_okay=True), default=Path(".")
)
@click.option("--output", "-o", type=str, default="results.tsv")
def main(path: Path, tobench: list[str], output: str):
console = rich.get_console()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


@click.command()
@click.option("--path", type=click.Path(exists=True, dir_okay=False), default=".")
@click.option("--path", type=click.Path(exists=True, dir_okay=False), default=Path("."))
@click.option("--nrows", type=int, default=-1)
@click.option("--ncols", type=int, default=5000)
def main(path: Path, nrows: int | None, ncols: int | None):
Expand Down

0 comments on commit c4b2aaf

Please sign in to comment.