Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit d255eb9

Browse files
demon1999gumb0
authored andcommitted
Use boost.program_options to handle command line arguments in eth and ethkey
1 parent 0087e37 commit d255eb9

File tree

6 files changed

+564
-484
lines changed

6 files changed

+564
-484
lines changed

eth/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(
88
add_executable(eth ${sources})
99
target_link_libraries(
1010
eth
11-
PRIVATE ethereum ethashseal evm web3jsonrpc webthree devcore
11+
PRIVATE ethereum ethashseal evm web3jsonrpc webthree devcore Boost::program_options
1212
)
1313

1414
target_include_directories(eth PRIVATE ../utils)

eth/MinerAux.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ class MinerCLI
101101
BasicAuthority::init();
102102
}
103103

104-
bool interpretOption(int& i, int argc, char** argv)
104+
bool interpretOption(size_t& i, vector<string> const& argv)
105105
{
106+
size_t argc = argv.size();
106107
string arg = argv[i];
107108
if (arg == "--benchmark-warmup" && i + 1 < argc)
108109
try {

0 commit comments

Comments
 (0)