Page MenuHomePhabricator

scripted-diff: Use Flags enum in AddArg()
ClosedPublic

Authored by deadalnix on Apr 18 2020, 07:10.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Apr 20 2020, 08:00