Skip to content

Commit

Permalink
Merge pull request #279 from k-dominik/patch-1
Browse files Browse the repository at this point in the history
allow main with empty args
  • Loading branch information
joshmoore authored May 8, 2023
2 parents b2e9e1c + 7158914 commit c660876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ome_zarr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import argparse
import logging
import sys
from typing import List
from typing import List, Union

from .csv import csv_to_zarr
from .data import astronaut, coins, create_zarr
Expand Down 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: Union[List[str], None] = None) -> None:
"""Run appropriate function with argparse arguments, handling errors."""
parser = argparse.ArgumentParser()
parser.add_argument(
Expand Down

0 comments on commit c660876

Please sign in to comment.