Fix: Should not crash with command line arg --help

This commit is contained in:
nicolas.dorier
2023-02-16 18:32:26 +09:00
parent 9b865ef849
commit 4b2ea0c0c3

View File

@@ -36,6 +36,8 @@ namespace BTCPayServer
try
{
var confBuilder = new DefaultConfiguration() { Logger = logger }.CreateConfigurationBuilder(args);
if (confBuilder is null)
return;
#if DEBUG
confBuilder.AddJsonFile("appsettings.dev.json", true, false);
#endif