Initialize help hook before actually parsing the command line (#1447)

This commit is contained in:
Yuri Khan 2022-07-26 22:33:32 +07:00 committed by GitHub
parent 141b554e3a
commit 892f29589d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -678,9 +678,9 @@ void PrintDefaultHelp() {
}
void Initialize(int* argc, char** argv, void (*HelperPrintf)()) {
internal::HelperPrintf = HelperPrintf;
internal::ParseCommandLineFlags(argc, argv);
internal::LogLevel() = FLAGS_v;
internal::HelperPrintf = HelperPrintf;
}
void Shutdown() { delete internal::global_context; }