HomePhabricator

refactor: Pass ArgsManager into functions that register args

Description

refactor: Pass ArgsManager into functions that register args

Summary:

Rationale: reduce use of gArgs to decouple code and simplify future
maintenance and easier unit testing.

This PR is continuation of work started in #18926 and #18662
It covers only places that register args in ArgsManager with AddArgs()
or AddHiddenArgs().

Backport of core PR19561.

Depends on D8643.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D8644

Details

Provenance
Ivan Metlushko <metlushko@gmail.com>Authored on Jul 19 2020, 07:31
FabienCommitted on Dec 14 2020, 07:31
FabienPushed on Dec 14 2020, 07:32
Reviewer
Restricted Project
Differential Revision
D8644: refactor: Pass ArgsManager into functions that register args
Parents
rABC8aa25991fca1: Bump version to 0.22.10
Branches
Unknown
Tags
Unknown