This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
Better command line in rlp #4639
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
df87859
Fixing cmakelists
demon1999 511703b
Fixing rlp
demon1999 0bbeefb
Fixing codestyle in rlp
demon1999 0bb031b
Fixing rlp
demon1999 68a3b63
Fix formatting
gumb0 d7d415e
Update main.cpp
demon1999 2627353
Update main.cpp
demon1999 e39a450
Update main.cpp
demon1999 e5d3d71
Update main.cpp
demon1999 50b83f5
Fix formatting
gumb0 c697003
Remove long aliases for options as boost.program_options doesn't supp…
gumb0 6078814
Add default value to -i. Catch exceptions during program options pars…
gumb0 7072fd4
Remove obsolete --nice option handling.
gumb0 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
add_executable(rlp main.cpp) | ||
target_include_directories(rlp PRIVATE "${UTILS_INCLUDE_DIR}") | ||
target_link_libraries(rlp PRIVATE devcrypto devcore) | ||
target_link_libraries(rlp PRIVATE devcrypto devcore Boost::program_options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be a weird way of doing this. Can't we inform boost we would like to store this option in
bool lenience
variable and use the variable directly?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the way suggested by the official tutorials http://www.boost.org/doc/libs/1_65_1/doc/html/program_options/tutorial.html#idp437555840
But there's an option to store it in a local variable, too, I think.
This way is actually more compact (no need to define a local variable for each option), but duplicating the option name is a downside