bitcoin core – How to find startup flags or command line options for Bitcoind?

I'd like to query the Bitcoin daemon (bitcoind) to find out which startup flags (command-line options) were sent to it at startup (or change the current state if it's changed, such as the startup flag). server = 0/1 To change).

For example, I might like to know if -Adresstyp, -disablewallet, -scan, or -uacomment = or another flag has been set.

For Namecoin it would be very useful to know if -History was set.

Is there an RPC or other method to find out?


Or to put the question differently …

src / bitcoind.cpp's bool AppInit (int argc, char * argv.)[]) method calls ParseParameters (argc, argv);which is located in src / util.cpp.

In src / util.cpp we have:

map mapArgs;
static map <string, vector > _mapMultiArgs;
const map <string, vector > & mapMultiArgs = _mapMultiArgs;

Save flags / options / arguments.

Basically, I just want to get through bitcoind, which is in these variables.