mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-21 17:42:37 +02:00
tools: Add unused argsman to bench_bitcoin
This commit is contained in:
parent
544709763e
commit
fa2bc4141d
@ -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_WIDTH = 1024;
|
||||||
static const int64_t DEFAULT_PLOT_HEIGHT = 768;
|
static const int64_t DEFAULT_PLOT_HEIGHT = 768;
|
||||||
|
|
||||||
static void SetupBenchArgs()
|
static void SetupBenchArgs(ArgsManager& argsman)
|
||||||
{
|
{
|
||||||
SetupHelpOptions(gArgs);
|
SetupHelpOptions(gArgs);
|
||||||
|
|
||||||
@ -33,7 +33,8 @@ static void SetupBenchArgs()
|
|||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
SetupBenchArgs();
|
ArgsManager argsman;
|
||||||
|
SetupBenchArgs(argsman);
|
||||||
std::string error;
|
std::string error;
|
||||||
if (!gArgs.ParseParameters(argc, argv, error)) {
|
if (!gArgs.ParseParameters(argc, argv, error)) {
|
||||||
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);
|
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class UniValue;
|
#include <univalue.h> // For util::SettingsValue = UniValue
|
||||||
|
|
||||||
namespace util {
|
namespace util {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user