Skip to content

Commit

Permalink
Ensure dynamic_ui always has a True default (#81)
Browse files Browse the repository at this point in the history
See
#71 (comment)

---------

Co-authored-by: Huon Wilson <[email protected]>
  • Loading branch information
thejcannon and huonw authored Jan 9, 2024
1 parent 7541dfc commit ac77cad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reference_codegen/generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ helpAll.scope_to_help_info[globalScopeInternal].advanced.forEach((option) => {
cachedir = option.default.split("/").slice(0, -2).join("/");
}
});
helpAll.scope_to_help_info[""].basic.forEach((option) => {
// NB: The default changes depending on the environment, so hardcode.
if (option.config_key === "dynamic_ui") {
option.default = true;
}
});

Object.entries(helpAll.scope_to_help_info).forEach(([scope, info]) => {
["basic", "advanced", "deprecated"].forEach((optionsType) => {
Expand Down

0 comments on commit ac77cad

Please sign in to comment.