aboutsummaryrefslogtreecommitdiff
path: root/src/bench/bench_bitcoin.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-04-15 18:53:08 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-04-15 20:22:18 -0400
commitfa2bc4141df59f2e38fef863723b433250295d20 (patch)
tree209b5ec79cc3fdceda7cc09f08e3cb3e6922c580 /src/bench/bench_bitcoin.cpp
parent544709763e1f45148d1926831e07ff03487673ee (diff)
downloadbitcoin-fa2bc4141df59f2e38fef863723b433250295d20.tar.xz
tools: Add unused argsman to bench_bitcoin
Diffstat (limited to 'src/bench/bench_bitcoin.cpp')
-rw-r--r--src/bench/bench_bitcoin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp
index 2d44264e53..eeb423c1d2 100644
--- a/src/bench/bench_bitcoin.cpp
+++ b/src/bench/bench_bitcoin.cpp
@@ -17,7 +17,7 @@ static const char* DEFAULT_PLOT_PLOTLYURL = "https://cdn.plot.ly/plotly-latest.m
static const int64_t DEFAULT_PLOT_WIDTH = 1024;
static const int64_t DEFAULT_PLOT_HEIGHT = 768;
-static void SetupBenchArgs()
+static void SetupBenchArgs(ArgsManager& argsman)
{
SetupHelpOptions(gArgs);
@@ -33,7 +33,8 @@ static void SetupBenchArgs()
int main(int argc, char** argv)
{
- SetupBenchArgs();
+ ArgsManager argsman;
+ SetupBenchArgs(argsman);
std::string error;
if (!gArgs.ParseParameters(argc, argv, error)) {
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);