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

Check manualy for the cli arguments if mandatory have been set

parent 909f4e96
Branches
Tags
1 merge request!44Enhanced CLI arguments for theodolite
...@@ -22,6 +22,10 @@ def load_variables(): ...@@ -22,6 +22,10 @@ def load_variables():
parser = execution_parser(description='Run use case Programm') parser = execution_parser(description='Run use case Programm')
args = parser.parse_args() args = parser.parse_args()
print(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 return args
......
...@@ -22,6 +22,10 @@ def load_variables(): ...@@ -22,6 +22,10 @@ def load_variables():
parser = benchmark_parser("Run theodolite benchmarking") parser = benchmark_parser("Run theodolite benchmarking")
args = parser.parse_args() args = parser.parse_args()
print(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 return args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment