@@ -26,38 +26,33 @@ class Arguments {
26
26
@ NotNull String glob ;
27
27
28
28
@ Parameter (names = {"--exclude-glob" , "-e" },
29
- description = "Glob pattern to exclude test files. Defaults to '**/*Abstract*'. Make sure to single-quote the pattern to avoid shell expansion." )
29
+ description = "Glob pattern to exclude test files. Make sure to single-quote the pattern to avoid shell expansion." )
30
30
@ Nullable String excludeGlob ;
31
31
32
32
@ Parameter (names = {"--junit-glob" , "-j" },
33
33
description = "Glob pattern to find JUnit reports. Make sure to single-quote the pattern to avoid shell expansion." )
34
34
@ Nullable String junitGlob ;
35
35
36
- @ Parameter (names = {"--format" , "-f" }, description = """
37
- The output format:
38
- * list: prints a space delimited list.
39
- * gradle: adds a '--tests' filter for each test.
40
- Defaults to 'list'.
41
- """ , converter = FormatOptionConverter .class )
36
+ @ Parameter (names = {"--format" , "-f" }, description = "The output format." , converter = FormatOptionConverter .class )
42
37
@ NotNull FormatOption format = FormatOption .LIST ;
43
38
44
39
@ Parameter (names = {"--averageTime" , "-a" },
45
- description = "Use the average test time from tests with JUnit reports for tests without JUnit reports. Defaults to 'false'. " )
40
+ description = "Use the average test time from tests with JUnit reports for tests without JUnit reports." )
46
41
boolean useAverageTimeForNewTests = false ;
47
42
48
43
@ Parameter (names = {"--working-directory" , "-w" },
49
44
description = "The working directory. Defaults to the current directory." )
50
45
@ Nullable Path workingDirectory ;
51
46
52
- @ Parameter (names = {"--debug" , "-d" }, description = "Enables debug logging. Defaults to 'false'. " )
47
+ @ Parameter (names = {"--debug" , "-d" }, description = "Enables debug logging." )
53
48
boolean debug = false ;
54
49
55
50
public static class FormatOptionConverter implements IStringConverter <FormatOption > {
56
51
57
52
@ Override
58
53
public @ NotNull FormatOption convert (final @ NotNull String value ) {
59
54
return Arrays .stream (FormatOption .values ())
60
- .filter (option -> option .getParameterValue ().equals (value ))
55
+ .filter (option -> option .toString ().equals (value ))
61
56
.findFirst ()
62
57
.orElseThrow ();
63
58
}
0 commit comments