forked from ddrilling/AsbCloudServer
fix program args parsing
This commit is contained in:
parent
fdf5a6ecd6
commit
cdb8207c35
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user