Skip to content

Commit

Permalink
Fix argument handling
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Aug 1, 2024
1 parent d2a4f41 commit d795a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ome2024_ngff_challenge/resave.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def main(ns: argparse.Namespace) -> int:
return converted


def cli(args=sys.argv):
def cli(args=sys.argv[1:]):
"""
Parses the arguments contained in `args` and passes
them to `main`. If no images are converted, raises
Expand Down Expand Up @@ -612,4 +612,4 @@ def cli(args=sys.argv):


if __name__ == "__main__":
cli(sys.argv)
cli(sys.argv[1:])

0 comments on commit d795a73

Please sign in to comment.