From cdb8207c3528af7f09b2248e2b686147b5195dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Thu, 2 Dec 2021 11:24:54 +0500 Subject: [PATCH] fix program args parsing --- AsbCloudWebApi/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AsbCloudWebApi/Program.cs b/AsbCloudWebApi/Program.cs index 420abf0e..395ec1e7 100644 --- a/AsbCloudWebApi/Program.cs +++ b/AsbCloudWebApi/Program.cs @@ -11,7 +11,7 @@ namespace AsbCloudWebApi public static void Main(string[] args) { //new TraceListenerView(); // to trace mysterious errors - if(args?.Length > 1 ) + if(args?.Length > 0 ) { if (args.Contains("db_init")) { var connectionStringName = "DefaultConnection"; @@ -26,6 +26,7 @@ namespace AsbCloudWebApi return; } WriteHelp(); + return; } CreateHostBuilder(args).Build().Run();