-
Notifications
You must be signed in to change notification settings - Fork 37k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgsManager: support subcommand-specific options #28802
base: master
Are you sure you want to change the base?
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/28802. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. 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. |
Implements this comment from when these commands were introduced originally. Main motivation is that I'd like to add a new subcommand to |
d335f7f
to
abba7c5
Compare
tool_wallet.py fails CI |
abba7c5
to
162c5ab
Compare
162c5ab
to
86fab48
Compare
86fab48
to
6be2b82
Compare
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.
Approach ACK
d5e680e
to
1cd91d4
Compare
1cd91d4
to
15875ea
Compare
15875ea
to
905ed6b
Compare
905ed6b
to
d10e294
Compare
d10e294
to
793d116
Compare
793d116
to
80c0927
Compare
Needs rebase, if still relevant |
Leaving as draft pending #31250 |
Adds the ability to link particular options to one or more subcommands, and uses this feature in
bitcoin-wallet
. Separates out the help information for subcommand-specific options (duplicating it if an option applies to multiple subcommands), and provides a function for checking if some options have been specified that only apply to different subcommands.