Repository navigation
util: Add SetupHelpOptions() - #15358
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
| bool HelpRequested(const ArgsManager& args); | ||
|
|
||
| /** Add help options to the args manager */ | ||
| void SetupHelpOptions(ArgsManager& args); |
There was a problem hiding this comment.
nit, how about this as a member, like ArgsManager::SetupHelpOptions?
There was a problem hiding this comment.
In general the args are module specific (wallet, node, gui, chain, mempool, ...) so the args manager should not know about them. This is also in line with how we Setup*Options() for all other modules.
There was a problem hiding this comment.
Agree with @MarcoFalke here. It is not the responsibility of ArgsManager to know about or hardcode specific options.
|
Concept ACK |
|
utACK a99999c |
|
utACK a99999c |
a99999c util: Add SetupHelpOptions() (MarcoFalke) Pull request description: Every binary we have sets up the help option in their own way and wording. Solve that by having one function take care of it for all of them. Tree-SHA512: 6e947fa8bc2a46fa6ca9f45777020aa269a5df0dd916ebc863224f9a1e0f79e8e7754a1478567307edd9461e8babd77d26bc2710bbd56e8f8da9020aa85a8c9c
Summary: This is a backport of Core [[bitcoin/bitcoin#15358 | PR15358]] Test Plan: ninja all check Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D8013
a99999c util: Add SetupHelpOptions() (MarcoFalke) Pull request description: Every binary we have sets up the help option in their own way and wording. Solve that by having one function take care of it for all of them. Tree-SHA512: 6e947fa8bc2a46fa6ca9f45777020aa269a5df0dd916ebc863224f9a1e0f79e8e7754a1478567307edd9461e8babd77d26bc2710bbd56e8f8da9020aa85a8c9c
a99999c util: Add SetupHelpOptions() (MarcoFalke) Pull request description: Every binary we have sets up the help option in their own way and wording. Solve that by having one function take care of it for all of them. Tree-SHA512: 6e947fa8bc2a46fa6ca9f45777020aa269a5df0dd916ebc863224f9a1e0f79e8e7754a1478567307edd9461e8babd77d26bc2710bbd56e8f8da9020aa85a8c9c
Every binary we have sets up the help option in their own way and wording.
Solve that by having one function take care of it for all of them.