fix program args parsing

This commit is contained in:
Фролов 2021-12-02 11:24:54 +05:00
parent fdf5a6ecd6
commit cdb8207c35

View File

@ -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();