(options)
| 50 | output_file.write("OPT_{0} ({1}, {2}, {3}, {4})\n".format(type.upper(), group_name.upper(), json_name.upper(), json_name, default_value)) |
| 51 | |
| 52 | def print_options(options): |
| 53 | for op_group, group_vals in options.items(): |
| 54 | for op_key, op_vals in group_vals.items(): |
| 55 | default = op_vals["Default"] |
| 56 | if (op_vals["Type"] == "str" or op_vals["Type"] == "strarray"): |
| 57 | # Wrap the string argument in quotes |
| 58 | default = "\"" + default + "\"" |
| 59 | |
| 60 | print_config( |
| 61 | op_vals["Type"], |
| 62 | op_group, |
| 63 | op_key, |
| 64 | default) |
| 65 | |
| 66 | output_file.write("\n") |
| 67 | |
| 68 | def print_unnamed_options(options): |
| 69 | output_file.write("// Unnamed configuration options\n") |
no test coverage detected