Skip to content
Snippets Groups Projects
Commit c2335013 authored by René Heß's avatar René Heß
Browse files

Assert that program is called with ini file

parent 3d7cc042
No related branches found
No related tags found
No related merge requests found
...@@ -282,6 +282,13 @@ def generate_driver(): ...@@ -282,6 +282,13 @@ def generate_driver():
contents = [] contents = []
# Assert that this program was called with ini file
contents += ['if (argc != 2){',
' std::cerr << "This program needs to be called with an ini file" << std::endl;',
' return 1;',
'}',
'']
def add_section(tag, comment): def add_section(tag, comment):
tagcontents = [i for i in retrieve_cache_items("preamble and {}".format(tag), make_generable=True)] tagcontents = [i for i in retrieve_cache_items("preamble and {}".format(tag), make_generable=True)]
if tagcontents: if tagcontents:
......
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