(ns)
| 160 | |
| 161 | @public |
| 162 | def update_presets(ns): |
| 163 | for preset, info in PRESETS.items(): |
| 164 | if ns_get(ns, "preset-{}".format(preset)): |
| 165 | for opt in info["options"]: |
| 166 | ns_set(ns, opt) |
| 167 | |
| 168 | if ns.include_all: |
| 169 | for opt in OPTIONS: |
| 170 | if OPTIONS[opt].get("not-in-all"): |
| 171 | continue |
| 172 | ns_set(ns, opt) |