@@ -52,7 +52,7 @@ public static void Main(string[] args)
52
52
if ( args . Any ( a => a == "--package-directory" || a == "-p" ) )
53
53
{
54
54
int idx = Array . FindIndex ( args , a => a == "--package-directory" || a == "-p" ) ;
55
- if ( idx == args . Length )
55
+ if ( idx + 1 == args . Length )
56
56
{
57
57
throw new ArgumentException ( "No value provided for the --package-directory parameter." ) ;
58
58
}
@@ -81,7 +81,7 @@ public static void Main(string[] args)
81
81
if ( args . Any ( a => a == "--reports-directory" || a == "-r" ) )
82
82
{
83
83
int idx = Array . FindIndex ( args , a => a == "--reports-directory" || a == "-r" ) ;
84
- if ( idx == args . Length )
84
+ if ( idx + 1 == args . Length )
85
85
{
86
86
throw new ArgumentException ( "No value provided for the --reports-directory parameter." ) ;
87
87
}
@@ -98,12 +98,14 @@ public static void Main(string[] args)
98
98
if ( args . Any ( a => a == "--modules-to-analyze" || a == "-m" ) )
99
99
{
100
100
int idx = Array . FindIndex ( args , a => a == "--modules-to-analyze" || a == "-m" ) ;
101
- if ( idx == args . Length )
101
+ if ( idx + 1 == args . Length )
102
102
{
103
- throw new ArgumentException ( "No value provided for the --modules-to-analyze parameter." ) ;
103
+ Console . WriteLine ( "No value provided for the --modules-to-analyze parameter. Filtering over all built modules." ) ;
104
+ }
105
+ else
106
+ {
107
+ modulesToAnalyze = args [ idx + 1 ] . Split ( ';' ) . ToList ( ) ;
104
108
}
105
-
106
- modulesToAnalyze = args [ idx + 1 ] . Split ( ';' ) . ToList ( ) ;
107
109
}
108
110
109
111
bool useNetcore = args . Any ( a => a == "--use-netcore" || a == "-u" ) ;
0 commit comments