From 87c54b79ef70001cdc2b4e8fbca65c19d694ce08 Mon Sep 17 00:00:00 2001 From: Yarik Briukhovetskyi <114298166+yariks5s@users.noreply.github.com> Date: Thu, 25 Apr 2024 18:34:28 +0200 Subject: [PATCH] revert changes for clickhouse benchmark --- programs/benchmark/Benchmark.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/programs/benchmark/Benchmark.cpp b/programs/benchmark/Benchmark.cpp index e5565cd7adf..eecc352d073 100644 --- a/programs/benchmark/Benchmark.cpp +++ b/programs/benchmark/Benchmark.cpp @@ -598,7 +598,6 @@ int mainEntryClickHouseBenchmark(int argc, char ** argv) boost::program_options::options_description desc = createOptionsDescription("Allowed options", getTerminalWidth()); desc.add_options() ("help", "produce help message") - ("verbose", "print more detailed message") ("query,q", value()->default_value(""), "query to execute") ("concurrency,c", value()->default_value(1), "number of parallel queries") ("delay,d", value()->default_value(1), "delay between intermediate reports in seconds (set 0 to disable reports)") @@ -625,24 +624,18 @@ int mainEntryClickHouseBenchmark(int argc, char ** argv) ; Settings settings; + addProgramOptions(settings, desc); boost::program_options::variables_map options; boost::program_options::store(boost::program_options::parse_command_line(argc, argv, desc), options); boost::program_options::notify(options); - if (options.count("verbose")) - addProgramOptions(settings, desc); - - boost::program_options::store(boost::program_options::parse_command_line(argc, argv, desc), options); - boost::program_options::notify(options); - clearPasswordFromCommandLine(argc, argv); if (options.count("help")) { std::cout << "Usage: " << argv[0] << " [options] < queries.txt\n"; std::cout << desc << "\n"; - std::cout << "All setting parameters are documented in detail at https://clickhouse.com/docs/ or you can also access them in `system.settings` table.\n"; std::cout << "\nSee also: https://clickhouse.com/docs/en/operations/utilities/clickhouse-benchmark/\n"; return 0; }