| 493 | } |
| 494 | |
| 495 | int ParseCommandLineFlags(int* argc, char*** argv, bool remove_flags) { |
| 496 | // The logbufsecs default is 30 seconds which is a bit too long. |
| 497 | google::SetCommandLineOptionWithMode("logbufsecs", "5", |
| 498 | google::FlagSettingMode::SET_FLAGS_DEFAULT); |
| 499 | |
| 500 | int ret = google::ParseCommandLineNonHelpFlags(argc, argv, remove_flags); |
| 501 | HandleCommonFlags(); |
| 502 | ValidateFlags(); |
| 503 | return ret; |
| 504 | } |
| 505 | |
| 506 | void HandleCommonFlags() { |
| 507 | if (FLAGS_helpxml) { |