Skip to content

Commit

Permalink
Add --local-ontologies to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Oct 30, 2023
1 parent d94d607 commit badb226
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion dic2owl/dic2owl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ def main(argv: "Optional[List[str]]" = None) -> None:
"to the CIF_DIC file."
),
)
parser.add_argument(
"--local-ontologies",
action="store_true",
help=(
"Use local ontologies instead of the latest commit on GitHub. "
"This is mainly for debugging purposes."
),
)
parser.add_argument(
"dicfile",
metavar="CIF_DIC",
Expand All @@ -84,4 +92,8 @@ def main(argv: "Optional[List[str]]" = None) -> None:
# downloaded.
args.dicfile = str(args.dicfile)

dic2owl_run(dicfile=args.dicfile, ttlfile=args.ttlfile)
dic2owl_run(
dicfile=args.dicfile,
ttlfile=args.ttlfile,
local_ontologies=args.local_ontologies,
)

0 comments on commit badb226

Please sign in to comment.