Run 'late phase' custom validators: these can be run only when all flags are already parsed and individually validated.
| 449 | // Run 'late phase' custom validators: these can be run only when all flags are |
| 450 | // already parsed and individually validated. |
| 451 | void RunCustomValidators() { |
| 452 | const auto& validators(GetFlagValidators()); |
| 453 | bool found_inconsistency = false; |
| 454 | for (const auto& e : validators) { |
| 455 | found_inconsistency |= !e.second(); |
| 456 | } |
| 457 | if (found_inconsistency) { |
| 458 | LOG(ERROR) << "Detected inconsistency in command-line flags; exiting"; |
| 459 | exit(1); |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | void SetUmask() { |
| 464 | // We already validated with a nice error message using the ValidateUmask |