| 148 | } |
| 149 | |
| 150 | bool common_preset::get_option(const std::string & env, std::string & value) const { |
| 151 | for (const auto & [opt, val] : options) { |
| 152 | if (opt.env && env == opt.env) { |
| 153 | value = val; |
| 154 | return true; |
| 155 | } |
| 156 | } |
| 157 | return false; |
| 158 | } |
| 159 | |
| 160 | void common_preset::merge(const common_preset & other) { |
| 161 | for (const auto & [opt, val] : other.options) { |