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)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
//new TraceListenerView(); // to trace mysterious errors
|
//new TraceListenerView(); // to trace mysterious errors
|
||||||
if(args?.Length > 1 )
|
if(args?.Length > 0 )
|
||||||
{
|
{
|
||||||
if (args.Contains("db_init")) {
|
if (args.Contains("db_init")) {
|
||||||
var connectionStringName = "DefaultConnection";
|
var connectionStringName = "DefaultConnection";
|
||||||
@ -26,6 +26,7 @@ namespace AsbCloudWebApi
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
WriteHelp();
|
WriteHelp();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateHostBuilder(args).Build().Run();
|
CreateHostBuilder(args).Build().Run();
|
||||||
|
Loading…
Reference in New Issue
Block a user