Skip to content

Commit

Permalink
Update cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jun 28, 2024
1 parent f99c0e3 commit 495cc95
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/bioontologies/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ def main():
@main.command()
@click.argument("prefix")
@click.option("--directory", type=Path)
@click.option("--graph-id")
@click.option("--save-obograph", is_flag=True)
@click.option("--graph-id", help="The IRI of the graph to parse. Set this if it can't be guessed")
@click.option(
"--save-obograph",
is_flag=True,
help="Save intermediate OBO Graph JSON file if conversion from OWL is required",
)
def index(prefix: str, graph_id: Optional[str], directory: Optional[Path], save_obograph: bool):
"""Generate a node index file."""
from .robot import get_obograph_by_prefix

prefix = bioregistry.normalize_prefix(prefix, strict=True)
prefix = bioregistry.normalize_prefix(prefix)

if directory is None:
directory = pystow.join("bioontologies", "index", prefix)
Expand Down

0 comments on commit 495cc95

Please sign in to comment.