File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Migrator Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ namespace AbpCompanyName.AbpProjectName.Migrator
10
10
public class Program
11
11
{
12
12
private static bool _skipConnVerification = false ;
13
+ private static bool _runQuietMode = false ;
13
14
14
15
public static void Main ( string [ ] args )
15
16
{
@@ -29,7 +30,7 @@ public static void Main(string[] args)
29
30
migrateExecuter . Object . Run ( _skipConnVerification ) ;
30
31
}
31
32
32
- if ( ! _skipConnVerification )
33
+ if ( ! _runQuietMode )
33
34
{
34
35
Console . WriteLine ( "Press ENTER to exit..." ) ;
35
36
Console . ReadLine ( ) ;
@@ -44,14 +45,16 @@ private static void ParseArgs(string[] args)
44
45
return ;
45
46
}
46
47
47
- for ( var i = 0 ; i < args . Length ; i ++ )
48
+ foreach ( var arg in args )
48
49
{
49
- var arg = args [ i ] ;
50
50
switch ( arg )
51
51
{
52
52
case "-s" :
53
53
_skipConnVerification = true ;
54
54
break ;
55
+ case "-q" :
56
+ _runQuietMode = true ;
57
+ break ;
55
58
}
56
59
}
57
60
}
You can’t perform that action at this time.
0 commit comments