From 892f29589dfe9bc253a3f3d50b4ce5ba240a5608 Mon Sep 17 00:00:00 2001 From: Yuri Khan Date: Tue, 26 Jul 2022 22:33:32 +0700 Subject: [PATCH] Initialize help hook before actually parsing the command line (#1447) --- src/benchmark.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchmark.cc b/src/benchmark.cc index 60354914..f8c01343 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -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; }