HomePhabricator

scripted-diff: Use Flags enum in AddArg()

Description

scripted-diff: Use Flags enum in AddArg()

Summary:
-BEGIN VERIFY SCRIPT-
sed -i 's/const bool debug_only,/unsigned int flags, &/' src/util/system.h src/util/system.cpp
sed -i -E 's/(true|false), OptionsCategory::/ArgsManager::ALLOW_ANY, &/' $(git grep --files-with-matches 'AddArg(' src)
-END VERIFY SCRIPT-

This is a partial backport of Core PR16097 : https://github.com/bitcoin/bitcoin/pull/16097/commits/1b4b9422cad28d1bead24ff5fd472536954cfaf9

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Jul 27 2019, 07:48
deadalnixCommitted on Apr 20 2020, 13:21
deadalnixPushed on Apr 20 2020, 13:21
Reviewer
Restricted Project
Differential Revision
D5767: scripted-diff: Use Flags enum in AddArg()
Parents
rABC1bbbeffc3668: util: Explain why the path is cached
Branches
Unknown
Tags
Unknown

Event Timeline