From c32b1dc745a93001fffa6863b45ca433728cc630 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Vonheiden?= <bjoern.vonheiden@hotmail.de>
Date: Fri, 25 Sep 2020 13:06:38 +0200
Subject: [PATCH] Check manualy for the cli arguments if mandatory have been
 set

---
 execution/run_uc.py     | 4 ++++
 execution/theodolite.py | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/execution/run_uc.py b/execution/run_uc.py
index 8c51fbaff..7c26989a2 100644
--- a/execution/run_uc.py
+++ b/execution/run_uc.py
@@ -22,6 +22,10 @@ def load_variables():
     parser = execution_parser(description='Run use case Programm')
     args = parser.parse_args()
     print(args)
+    if args.exp_id is None or args.uc is None or args.load is None or args.instances is None :
+        print('The options --exp-id, --uc, --load and --instances are mandatory.')
+        print('Some might not be set!')
+        sys.exit(1)
     return args
 
 
diff --git a/execution/theodolite.py b/execution/theodolite.py
index 2cf00bbb7..ae7a9244f 100755
--- a/execution/theodolite.py
+++ b/execution/theodolite.py
@@ -22,6 +22,10 @@ def load_variables():
     parser = benchmark_parser("Run theodolite benchmarking")
     args = parser.parse_args()
     print(args)
+    if args.uc is None or args.loads is None or args.instances_list is None:
+        print('The options --uc, --loads and --instances are mandatory.')
+        print('Some might not be set!')
+        sys.exit(1)
     return args
 
 
-- 
GitLab