@@ -18,14 +18,14 @@ const _expectedPackagesCheckLicensesUsage = [
18
18
'\n '
19
19
'Usage: very_good packages check licenses [arguments]\n '
20
20
'-h, --help Print this usage information.\n '
21
- ''' --ignore-failures Ignore any license that failed to be retrieved.\n '''
21
+ ''' --ignore-retrieval- failures Disregard licenses that failed to be retrieved.\n '''
22
22
''' --dependency-type The type of dependencies to check licenses for.\n '''
23
23
'\n '
24
24
''' [direct-dev] Check for direct dev dependencies.\n '''
25
25
''' [direct-main] (default) Check for direct main dependencies.\n '''
26
26
''' [transitive] Check for transitive dependencies.\n '''
27
27
'\n '
28
- ''' --allowed Whitelist of allowed licenses.\n '' '
28
+ ' --allowed Whitelist of allowed licenses.\n '
29
29
''' --forbidden Blacklist of not allowed licenses.\n '''
30
30
'\n '
31
31
'Run "very_good help" to see global options.'
@@ -161,8 +161,8 @@ void main() {
161
161
},
162
162
);
163
163
164
- group ('ignore-failures' , () {
165
- const ignoreFailuresArgument = '--ignore-failures' ;
164
+ group ('ignore-retrieval- failures' , () {
165
+ const ignoreRetrievalFailuresArgument = '--ignore-retrieval -failures' ;
166
166
167
167
group ('reports licenses' , () {
168
168
test (
@@ -183,7 +183,11 @@ void main() {
183
183
.thenThrow (exception);
184
184
185
185
final result = await commandRunner.run (
186
- [...commandArguments, ignoreFailuresArgument, tempDirectory.path],
186
+ [
187
+ ...commandArguments,
188
+ ignoreRetrievalFailuresArgument,
189
+ tempDirectory.path,
190
+ ],
187
191
);
188
192
189
193
final errorMessage =
@@ -224,7 +228,11 @@ void main() {
224
228
.thenThrow (error);
225
229
226
230
final result = await commandRunner.run (
227
- [...commandArguments, ignoreFailuresArgument, tempDirectory.path],
231
+ [
232
+ ...commandArguments,
233
+ ignoreRetrievalFailuresArgument,
234
+ tempDirectory.path,
235
+ ],
228
236
);
229
237
230
238
const errorMessage =
@@ -264,7 +272,11 @@ void main() {
264
272
when (() => pubLicense.getLicense (any ())).thenThrow (error);
265
273
266
274
final result = await commandRunner.run (
267
- [...commandArguments, ignoreFailuresArgument, tempDirectory.path],
275
+ [
276
+ ...commandArguments,
277
+ ignoreRetrievalFailuresArgument,
278
+ tempDirectory.path,
279
+ ],
268
280
);
269
281
270
282
final packageNames = verify (() => pubLicense.getLicense (captureAny ()))
0 commit comments