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

Fix show_options() method

parent 33f258f1
No related branches found
No related tags found
No related merge requests found
......@@ -62,18 +62,17 @@ _form_options = {}
def show_options():
# TODO: This needs to be adjusted to options-validation
def subopt(arr):
for k, v in arr.__dict__.items():
if isinstance(v, CodegenOption) and v.helpstr is not None:
print("{}\n {}".format(k, v.helpstr))
def print_options(form=False):
scheme = _load_scheme(form=form)
for k, v in scheme.items():
print("{}\n {}".format(k, v['helpstr']))
print("This is a summary of options available for the code generation process:\n")
print("The following options can be given in the [formcompiler] section:")
subopt(CodegenGlobalOptionsArray)
print_options(form=False)
print("\nThefollowing options can be given in a form-specific subsection of [formcompiler]:")
subopt(CodegenFormOptionsArray)
print_options(form=True)
def initialize_options():
......
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