Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Parse command line using CLI11
Browse files Browse the repository at this point in the history
This introduces some unavoidable incompatibility due to
CLI11 limitations.

CLI11 does not support multi-character options with single
dash. Previous options like -RH, -HWMON, and -SE can't be
implemented as is.

The replacement --hwmon options must specify a 0 or a 1.
it can no longer we specified alone, implying a 0.
  • Loading branch information
jean-m-cyr committed May 27, 2018
1 parent 0c36782 commit 379502d
Show file tree
Hide file tree
Showing 3 changed files with 332 additions and 581 deletions.
5 changes: 4 additions & 1 deletion ethminer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ file(GLOB HEADERS "*.h")

add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS})

target_link_libraries(ethminer PRIVATE ethcore poolprotocols devcore ethminer-buildinfo)
hunter_add_package(CLI11)
find_package(CLI11 CONFIG REQUIRED)

target_link_libraries(ethminer PRIVATE ethcore poolprotocols devcore ethminer-buildinfo CLI11::CLI11)

if(ETHDBUS)
find_package(PkgConfig)
Expand Down
Loading

0 comments on commit 379502d

Please sign in to comment.