| 355 | } |
| 356 | |
| 357 | static void InterpretNegativeSetting(string name, map<string, string>& mapSettingsRet) |
| 358 | { |
| 359 | // interpret -nofoo as -foo=0 (and -nofoo=0 as -foo=1) as long as -foo not set |
| 360 | if (name.find("-no") == 0) { |
| 361 | std::string positive("-"); |
| 362 | positive.append(name.begin() + 3, name.end()); |
| 363 | if (mapSettingsRet.count(positive) == 0) { |
| 364 | bool value = !GetBoolArg(name, false); |
| 365 | mapSettingsRet[positive] = (value ? "1" : "0"); |
| 366 | } |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | void ParseParameters(int argc, const char* const argv[]) |
| 371 | { |