mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
d96983a327
60aa179d8f9a675efa2d78eaadc09e3ba450f50f Use GetPathArg where possible (Pavol Rusnak) 5b946edd73640c6ecdfb4cbac1d4351e634678dc util, refactor: Use GetPathArg to read "-settings" value (Ryan Ofsky) 687e655ae2970f2f13aca0267c7de86dc69be763 util: Add GetPathArg default path argument (Ryan Ofsky) Pull request description: Improve `ArgsManager::GetPathArg` method added in recent PR #24265, so it is usable more places. This PR starts to use it for the `-settings` option. This can also be helpful for #24274 which is parsing more path options. - Add `GetPathArg` default argument so it is less awkward to use to parse options that have default values. - Fix `GetPathArg` negated argument handling. Return path{} not path{"0"} when path argument is negated. - Add unit tests for default and negated cases - Move `GetPathArg` method declaration next to `GetArg` declaration. The two methods are close substitutes for each, so this should help keep them consistent and make them more discoverable. ACKs for top commit: w0xlt: Tested ACK 60aa179 on Ubuntu 21.10 hebasto: re-ACK 60aa179d8f9a675efa2d78eaadc09e3ba450f50f Tree-SHA512: 3d24b885d8bbeef39ea5d0556e2f09b9e5f4a21179cef11cbbbc1b84da29c8fb66ba698889054ce28d80bc25926687654c8532ed46054bf5b2dd1837866bd1cd |
||
---|---|---|
.. | ||
data | ||
.gitignore | ||
addrman.cpp | ||
base58.cpp | ||
bech32.cpp | ||
bench_bitcoin.cpp | ||
bench.cpp | ||
bench.h | ||
bip324_ecdh.cpp | ||
block_assemble.cpp | ||
bls_dkg.cpp | ||
bls.cpp | ||
ccoins_caching.cpp | ||
chacha20.cpp | ||
checkblock.cpp | ||
checkqueue.cpp | ||
coin_selection.cpp | ||
crypto_hash.cpp | ||
data.cpp | ||
data.h | ||
duplicate_inputs.cpp | ||
ecdsa.cpp | ||
ellswift.cpp | ||
examples.cpp | ||
gcs_filter.cpp | ||
hashpadding.cpp | ||
load_external.cpp | ||
lockedpool.cpp | ||
mempool_eviction.cpp | ||
mempool_stress.cpp | ||
merkle_root.cpp | ||
nanobench.cpp | ||
nanobench.h | ||
peer_eviction.cpp | ||
poly1305.cpp | ||
pool.cpp | ||
prevector.cpp | ||
rollingbloom.cpp | ||
rpc_blockchain.cpp | ||
rpc_mempool.cpp | ||
strencodings.cpp | ||
string_cast.cpp | ||
util_time.cpp | ||
verify_script.cpp | ||
wallet_balance.cpp |