scripts/generate-options: prefer defaultText over default
This commit is contained in:
@@ -91,7 +91,9 @@ def print_option(option):
|
|||||||
key=option["name"],
|
key=option["name"],
|
||||||
description=description or "",
|
description=description or "",
|
||||||
type=f"- type: {md_literal(option['type'])}",
|
type=f"- type: {md_literal(option['type'])}",
|
||||||
default=render_option_value(option, "default"),
|
default=render_option_value(option, "defaultText")
|
||||||
|
if "defaultText" in option
|
||||||
|
else render_option_value(option, "default"),
|
||||||
example=render_option_value(option, "example"),
|
example=render_option_value(option, "example"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user