bitcoin icon indicating copy to clipboard operation
bitcoin copied to clipboard

ArgsManager: support subcommand-specific options

Open ajtowns opened this issue 2 years ago • 4 comments

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.

ajtowns avatar Nov 06 '23 09:11 ajtowns

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
Approach ACK stickies-v

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #30148 (cli: restrict multiple exclusive argument usage in bitcoin-cli by naiyoma)
  • #29838 (Feature: Use different datadirs for different signets by BrandonOdiwuor)

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.

DrahtBot avatar Nov 06 '23 09:11 DrahtBot

Implements this comment from when these commands were introduced originally. Main motivation is that I'd like to add a new subcommand to bitcoin-util unrelated to the existing grind functionality, and have options for it.

ajtowns avatar Nov 06 '23 09:11 ajtowns

tool_wallet.py fails CI

maflcko avatar Nov 06 '23 14:11 maflcko

🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the documentation.

Possibly this is due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.

Leave a comment here, if you need help tracking down a confusing failure.

Debug: https://github.com/bitcoin/bitcoin/runs/22587328812

DrahtBot avatar Jun 13 '24 23:06 DrahtBot