Skip to content

Commit 3af0997

Browse files
Resolved #164 - Create a "quiet" mode for migrator.exe
1 parent b0e6bd2 commit 3af0997

File tree

1 file changed

+6
-3
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Migrator

1 file changed

+6
-3
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Migrator/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace AbpCompanyName.AbpProjectName.Migrator
1010
public class Program
1111
{
1212
private static bool _skipConnVerification = false;
13+
private static bool _runQuietMode = false;
1314

1415
public static void Main(string[] args)
1516
{
@@ -29,7 +30,7 @@ public static void Main(string[] args)
2930
migrateExecuter.Object.Run(_skipConnVerification);
3031
}
3132

32-
if (!_skipConnVerification)
33+
if (!_runQuietMode)
3334
{
3435
Console.WriteLine("Press ENTER to exit...");
3536
Console.ReadLine();
@@ -44,14 +45,16 @@ private static void ParseArgs(string[] args)
4445
return;
4546
}
4647

47-
for (var i = 0; i < args.Length; i++)
48+
foreach (var arg in args)
4849
{
49-
var arg = args[i];
5050
switch (arg)
5151
{
5252
case "-s":
5353
_skipConnVerification = true;
5454
break;
55+
case "-q":
56+
_runQuietMode = true;
57+
break;
5558
}
5659
}
5760
}

0 commit comments

Comments
 (0)