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 28290a9
Show file tree
Hide file tree
Showing 4 changed files with 333 additions and 581 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Fixed
- Reconnecting with mining pool improved [[#1135](https://github.com/ethereum-mining/ethminer/pull/1135)].
- Stratum nicehash. Avoid recalculating target with every job [[#1156](https://github.com/ethereum-mining/ethminer/pull/1156)].
- CLI11 command line parsing support added [[#1160](https://github.com/ethereum-mining/ethminer/pull/1160)].
### Removed
- Disabled Debug configuration for Visual Studio [[#69](https://github.com/ethereum-mining/ethminer/issues/69)] [[#1131](https://github.com/ethereum-mining/ethminer/pull/1131)].
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 28290a9

Please sign in to comment.