- Move ChainNameFromCommandLine into ArgsManager and rename to GetChainName
- [tests] Add unit tests for GetChainName
- Separate out ReadConfigStream from ReadConfigFile
- ReadConfigStream: assume the stream is good
- [tests] Add unit tests for ReadConfigStream
- [tests] Check GetChainName works with config entries
- [tests] Add additional unit tests for -nofoo edge cases
This is a backport of Core's PR12878
Depends on D1833