From f09763bff6a5fc64f23122149f6cbc3323b624f7 Mon Sep 17 00:00:00 2001 From: Alex Gilbert Date: Thu, 20 Jun 2024 17:26:21 -0400 Subject: [PATCH] - add entry to yaml templates for valid keys --- data/options.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/options.yaml b/data/options.yaml index ee8866627d52..00a232c891d3 100644 --- a/data/options.yaml +++ b/data/options.yaml @@ -63,13 +63,17 @@ requires: # {%- endif -%} + {%- if option.valid_keys is defined and option.display_valid_keys %} + # Valid keys are {{ option.valid_keys }} + {%- endif -%} + {%- if option.range_start is defined and option.range_start is number %} {{- range_option(option) -}} {%- elif option.options -%} {%- for suboption_option_id, sub_option_name in option.name_lookup.items() %} {{ yaml_dump(sub_option_name) }}: {% if suboption_option_id == option.default %}50{% else %}0{% endif %} - {%- endfor -%} + {%- endfor -%} {%- if option.name_lookup[option.default] not in option.options %} {{ yaml_dump(option.default) }}: 50