mirror of
https://github.com/google/benchmark.git
synced 2025-01-30 22:00:16 +08:00
Initialize help hook before actually parsing the command line (#1447)
This commit is contained in:
parent
141b554e3a
commit
892f29589d
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user