From 18c4229ca498e6144320f8b2f0d511ea73a587f2 Mon Sep 17 00:00:00 2001
From: Michael Boniface <m.j.boniface@soton.ac.uk>
Date: Thu, 20 Feb 2025 17:53:43 +0000
Subject: [PATCH] made omop install directory option with default to working
 directory ./build/omop

---
 acmc/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acmc/main.py b/acmc/main.py
index 3f544ea..683985e 100644
--- a/acmc/main.py
+++ b/acmc/main.py
@@ -81,7 +81,7 @@ def main():
 	
 	# omop install
 	omop_install_parser = omop_subparsers.add_parser("install", help="Install OMOP codes within database")
-	omop_install_parser.add_argument("-d", "--omop-dir", required=True, help="Directory path to extracted OMOP downloads")
+	omop_install_parser.add_argument("-d", "--omop-dir", type=str, default=str(omop.OMOP_DB_DIR.resolve()), help="Directory path to extracted OMOP downloads")
 	omop_install_parser.add_argument("-v", "--version", required=True, help="OMOP vocabularies release version")	
 	omop_install_parser.set_defaults(func=omop_install)
 	
-- 
GitLab