HomePhabricator

ArgsManager: keep command line and config file arguments separate

Description

ArgsManager: keep command line and config file arguments separate

Summary:
This makes it possible to know whether an argument is set from the
command line or the config file.

Behavior change: in case of multiple values for an argument, the
following rules apply:

  • From the command line, GetArg returns the *last* value
  • From the config file, GetArg return the *first* value

Partial backport of core PR11862 (commit 3673ca3)

Test Plan:

make check

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, deadalnix, jasonbcox

Subscribers: jasonbcox, teamcity, schancel

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

Details

Provenance
Anthony Towns <aj@erisian.com.au>Authored on Apr 4 2018, 08:01
FabienCommitted on Feb 5 2019, 07:54
FabienPushed on Feb 5 2019, 07:54
Reviewer
Restricted Project
Differential Revision
D2432: ArgsManager: keep command line and config file arguments separate
Parents
rABCde9774b507b2: Enable Schnorr signature verification in CHECK(DATA)SIG(VERIFY)
Branches
Unknown
Tags
Unknown