Skip to content
Snippets Groups Projects
Commit c32b1dc7 authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Check manualy for the cli arguments if mandatory have been set

parent e70116af
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment