mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix: Should not crash with command line arg --help
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user