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
1 changed files with 1 additions and 1 deletions

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; }