mirror of
https://github.com/google/benchmark.git
synced 2024-11-25 22:47:20 +00: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 a new issue