From bbb50fe2dc7365f02a5d5e19b59f5c447d1316ee Mon Sep 17 00:00:00 2001 From: caufieldjh Date: Tue, 3 Sep 2024 14:42:52 -0400 Subject: [PATCH] Fix CLI options --- src/kg_bioportal/cli.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/kg_bioportal/cli.py b/src/kg_bioportal/cli.py index 1f2710d..8735bd5 100644 --- a/src/kg_bioportal/cli.py +++ b/src/kg_bioportal/cli.py @@ -34,9 +34,9 @@ def main(verbose: int, quiet: bool): @main.command() -@click.option("output_dir", "-o", required=True, default="data/raw") +@click.option("--output_dir", "-o", required=True, default="data/raw") @click.option( - "api_key", + "--api_key", "-k", required=False, type=str, @@ -66,34 +66,34 @@ def get_ontology_list(output_dir, api_key) -> None: @main.command() @click.option( - "ontologies", + "--ontologies", "-d", required=False, type=str, ) @click.option( - "ontology_file", + "--ontology_file", "-f", required=False, type=click.Path(exists=True), ) @click.option("output_dir", "-o", required=True, default="data/raw") @click.option( - "snippet_only", + "--snippet_only", "-x", is_flag=True, default=False, help="Download only the first 5 kB of each (uncompressed) source, for testing and file checks [false]", ) @click.option( - "ignore_cache", + "--ignore_cache", "-i", is_flag=True, default=False, help="ignore cache and download files even if they exist [false]", ) @click.option( - "api_key", + "--api_key", "-k", required=False, type=str, @@ -154,8 +154,8 @@ def download( @main.command() -@click.option("input_dir", "-i", default="data/raw", type=click.Path(exists=True)) -@click.option("output_dir", "-o", default="data/transformed") +@click.option("--input_dir", "-i", default="data/raw", type=click.Path(exists=True)) +@click.option("--output_dir", "-o", default="data/transformed") def transform(input_dir, output_dir) -> None: """Transforms all ontologies in the input directory to KGX nodes and edges.