Created
September 11, 2022 04:59
-
-
Save damienmarlier51/6b820d95043c52c20e807e314dc14e64 to your computer and use it in GitHub Desktop.
Junix cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
from junix import junix | |
import click | |
@click.command() | |
@click.option("-f", "--filepath", "filepath", required=True) | |
@click.option("-o", "--output_dir", "output_dir", default=None) | |
@click.option("-p", "--prefix", "prefix", default=None) | |
def export_images( | |
filepath: str, output_dir: Optional[str] = None, prefix: Optional[str] = None | |
): | |
junix.export_images(filepath=filepath, output_dir=output_dir, prefix=prefix) | |
if __name__ == "__main__": | |
export_images() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment