Skip to content

Commit

Permalink
allow main with empty args
Browse files Browse the repository at this point in the history
requiring arguments breaks being able to use `main` as a python entry point.
(this also breaks conda recipe currently as conda build tests the entry point)
  • Loading branch information
k-dominik authored May 8, 2023
1 parent b2e9e1c commit 8f98eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ome_zarr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def csv_to_labels(args: argparse.Namespace) -> None:
csv_to_zarr(args.csv_path, args.csv_id, args.csv_keys, args.zarr_path, args.zarr_id)


def main(args: List[str]) -> None:
def main(args: List[str] = None) -> None:
"""Run appropriate function with argparse arguments, handling errors."""
parser = argparse.ArgumentParser()
parser.add_argument(
Expand Down

0 comments on commit 8f98eb2

Please sign in to comment.