Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use boost.program_options to handle command line arguments in eth and…
… ethkey
  • Loading branch information
demon1999 authored and gumb0 committed Dec 8, 2017
commit d255eb960b4191eff8e9650c32e0b3db6e136e59
2 changes: 1 addition & 1 deletion eth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(
add_executable(eth ${sources})
target_link_libraries(
eth
PRIVATE ethereum ethashseal evm web3jsonrpc webthree devcore
PRIVATE ethereum ethashseal evm web3jsonrpc webthree devcore Boost::program_options
)

target_include_directories(eth PRIVATE ../utils)
Expand Down
3 changes: 2 additions & 1 deletion eth/MinerAux.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ class MinerCLI
BasicAuthority::init();
}

bool interpretOption(int& i, int argc, char** argv)
bool interpretOption(size_t& i, vector<string> const& argv)
{
size_t argc = argv.size();
string arg = argv[i];
if (arg == "--benchmark-warmup" && i + 1 < argc)
try {
Expand Down
Loading