530 | @@ -532,7 +531,7 @@ void SetupServerArgs(ArgsManager& argsman, bool can_listen_ipc)
531 | ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
532 |
533 | argsman.AddArg("-addnode=<ip>", strprintf("Add a node to connect to and attempt to keep the connection open (see the addnode RPC help for more info). This option can be specified multiple times to add multiple nodes; connections are limited to %u at a time and are counted separately from the -maxconnections limit.", MAX_ADDNODE_CONNECTIONS), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
534 | - argsman.AddArg("-asmap=<file>", strprintf("Specify asn mapping used for bucketing of the peers (default: %s). Relative paths will be prefixed by the net-specific datadir location.", DEFAULT_ASMAP_FILENAME), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
535 | + argsman.AddArg("-asmap=<file>", strprintf("Specify asn mapping used for bucketing of the peers (default: none). Relative paths will be prefixed by the net-specific datadir location."), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
cfeb160baec1369452c42d05c51f2a6af76ed077: nit: Perhaps we could remove this (default: none) to maintain consistency with other =<file> options?
re: #33770 (review)
cfeb160: nit: Perhaps we could remove this (default: none) to maintain consistency with other =<file> options?
Thanks for the suggestion. I looked into it and initially it seemed like a good simplification, but then I noticed that this is not the only (default: none) mention in help since there is also -i2psam. Also since PR is changing behavior, and we know behavior will change again in the future #33631 (comment), it seems like it might be better to be explicit about what exactly the default is right now.
If you disagree, or think default: none could be confusing in some way, or replaced with something clearer, please let me know. I'm just not sure it makes sense to drop completely.
I also don't like the inconsistent (default: none). I think it's pretty clear that if no default is mentioned, the feature is disabled. The help text for -i2psam should be fixed.
nit: strprintf isn't needed anymore.
re: #33770 (review)
I also don't like the inconsistent (default: none). I think it's pretty clear that if no default is mentioned, the feature is disabled. The help text for -i2psam should be fixed.
Thanks, I still think it is nice to be explicit about the default behavior, but I get that if you think about it, any other default behavior would be surprising, so it's not really necessary to mention. Dropped (default: none) from both -i2psam and -asmap descriptions as suggested.