From df51958c2aa4f3878804872899f2b1e5f6cd90ba Mon Sep 17 00:00:00 2001 From: ChrisKent Date: Wed, 6 Nov 2024 10:53:45 +0000 Subject: [PATCH] Added check incase output is dir --- bed2idt/__init__.py | 2 +- bed2idt/main.py | 6 ++++-- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bed2idt/__init__.py b/bed2idt/__init__.py index c68196d..a955fda 100644 --- a/bed2idt/__init__.py +++ b/bed2idt/__init__.py @@ -1 +1 @@ -__version__ = "1.2.0" +__version__ = "1.2.1" diff --git a/bed2idt/main.py b/bed2idt/main.py index 823dc23..a0d65a5 100644 --- a/bed2idt/main.py +++ b/bed2idt/main.py @@ -186,7 +186,7 @@ def common( pass -@app.command() +@app.command(no_args_is_help=True) def plates( bedfile: Annotated[ pathlib.Path, @@ -198,6 +198,7 @@ def plates( help="The output location of the file. Defaults to output.xlsx", writable=True, callback=append_xlsx, + dir_okay=False, ), ] = pathlib.Path("output.xlsx"), splitby: Annotated[ @@ -235,7 +236,7 @@ def plates( plates_go(primer_list, workbook, splitby, fillby, plateprefix, randomise) -@app.command() +@app.command(no_args_is_help=True) def tubes( bedfile: Annotated[ pathlib.Path, typer.Argument(help="The path to the bed file", readable=True) @@ -246,6 +247,7 @@ def tubes( help="The output location of the file. Defaults to output.xlsx", writable=True, callback=append_xlsx, + dir_okay=False, ), ] = pathlib.Path("output.xlsx"), scale: Annotated[ diff --git a/pyproject.toml b/pyproject.toml index 73d331e..20ba2bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bed2idt" -version = "1.2.0" +version = "1.2.1" description = "Converts primer.bed files to IDT ordering templates" authors = ["ChrisKent "] license = "CC-BY-SA-4.0"