Remove boost::program_options dependency#13482
Remove boost::program_options dependency#13482laanwj merged 2 commits intobitcoin:masterfrom ken2812221:program_options
Conversation
src/util.h
Outdated
There was a problem hiding this comment.
Is there a reason for this method to start with a lower case letter while all other start with upper case letters?
There was a problem hiding this comment.
No reason. So make it uppercase.
src/util.cpp
Outdated
There was a problem hiding this comment.
Use cbegin() and cend() please.
There was a problem hiding this comment.
I made it range-based
src/util.cpp
Outdated
There was a problem hiding this comment.
Minor: can use std::make_pair(name, value) for simplicity.
There was a problem hiding this comment.
emplace_back is more simple.
|
I'm utAck on this. Nicely done. This could have also been implemented with regex, but the pattern is simple enough that the logic is easily understandable. |
|
Concept ACK - maybe include the tests from #12744? |
|
Current on master, if there are some options in the config file without |
Note to reviewers: This pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
| Needs rebase |
|
Update |
|
@MarcoFalke Sure |
src/util.cpp
Outdated
There was a problem hiding this comment.
Coding style nit: use braces whenever indenting.
src/util.cpp
Outdated
src/util.cpp
Outdated
There was a problem hiding this comment.
Maybe introduce a static constant for this set of trimmable characters?
There was a problem hiding this comment.
I'm not sure this is what you want.
src/util.cpp
Outdated
There was a problem hiding this comment.
This can just be a static function; it doesn't need to be a method of ArgsManager.
|
Why close? |
|
Sorry, misclicked |
|
utACK f447a0a |
| @@ -1,108 +0,0 @@ | |||
| # ============================================================================ | |||
|
+42 −123 even though this is removing an external dependency, if that isn't a clear indication that this should be done I don't know what is. |
f447a0a Remove program options from build system (Chun Kuan Lee) 11588c6 Replace boost program_options (Chun Kuan Lee) Pull request description: Concept from #12744, but without parsing negated options. Tree-SHA512: 7f418744bb8934e313d77a5f162633746ef5d043de802b9c9cd9f7c1842e7e566eb5f171cd9e2cc13317281b2449c6fbd553fa4f09b837e6af2f5d2b2aabdca2
0385109 Add test for rpcpassword hash error (MeshCollider) 13fe258 Error if rpcpassword in conf contains a hash character (MeshCollider) Pull request description: Fixes #13143 now #13482 was merged Tree-SHA512: e7d00c8df1657f6b8d0eee1e06b9ce2b1b0a2de487377699382c1b057836e1571dac313ca878b5877c862f0461ba789a50b239d2a9f34accd8a6321f126e3d2a
be6563a Remove program options from build systems (Fuzzbawls) 025b8c2 Replace boost program_options (Fuzzbawls) Pull request description: Follow-up to #2324 which backports bitcoin#13482 This removes the dependency on Boost's program_options module ACKs for top commit: random-zebra: utACK be6563a furszy: utACK be6563a and merging Tree-SHA512: 6b1550e20c0bb6b3ec16659b181724cf72f02c7c00b584bdfabe06b77feeea249910e073393775f47499dfa0a7fb9137d952e8ad9f78df0ff03cc9b5a8e1c96b
f447a0a Remove program options from build system (Chun Kuan Lee) 11588c6 Replace boost program_options (Chun Kuan Lee) Pull request description: Concept from bitcoin#12744, but without parsing negated options. Tree-SHA512: 7f418744bb8934e313d77a5f162633746ef5d043de802b9c9cd9f7c1842e7e566eb5f171cd9e2cc13317281b2449c6fbd553fa4f09b837e6af2f5d2b2aabdca2
f447a0a Remove program options from build system (Chun Kuan Lee) 11588c6 Replace boost program_options (Chun Kuan Lee) Pull request description: Concept from bitcoin#12744, but without parsing negated options. Tree-SHA512: 7f418744bb8934e313d77a5f162633746ef5d043de802b9c9cd9f7c1842e7e566eb5f171cd9e2cc13317281b2449c6fbd553fa4f09b837e6af2f5d2b2aabdca2
0385109 Add test for rpcpassword hash error (MeshCollider) 13fe258 Error if rpcpassword in conf contains a hash character (MeshCollider) Pull request description: Fixes bitcoin#13143 now bitcoin#13482 was merged Tree-SHA512: e7d00c8df1657f6b8d0eee1e06b9ce2b1b0a2de487377699382c1b057836e1571dac313ca878b5877c862f0461ba789a50b239d2a9f34accd8a6321f126e3d2a
0385109 Add test for rpcpassword hash error (MeshCollider) 13fe258 Error if rpcpassword in conf contains a hash character (MeshCollider) Pull request description: Fixes bitcoin#13143 now bitcoin#13482 was merged Tree-SHA512: e7d00c8df1657f6b8d0eee1e06b9ce2b1b0a2de487377699382c1b057836e1571dac313ca878b5877c862f0461ba789a50b239d2a9f34accd8a6321f126e3d2a
Concept from #12744, but without parsing negated options.