ottlinger commented on code in PR #195:
URL: https://github.com/apache/creadur-rat/pull/195#discussion_r1451621923
##########
apache-rat-core/src/main/java/org/apache/rat/Report.java:
##########
@@ -269,29 +264,41 @@ static FilenameFilter parseExclusions(List<String>
excludes) {
}
static Options buildOptions() {
- Options opts = new Options();
-
- Option help = new Option(HELP, "help", false, "Print help for the RAT
command line interface and exit");
- opts.addOption(help);
-
- Option out = new Option("o", "out", true, "Define the output file
where to write report (default is System.out)");
+ String licFilterValues = String.join(", ",
+
Arrays.stream(LicenseFilter.values()).map(LicenseFilter::name).collect(Collectors.toList()));
+
+ Options opts = new Options()
+
+ .addOption(
+ Option.builder().hasArg(true).longOpt(LIST_FAMILIES)
+ .desc("List the defined license families Valid options are:
"+licFilterValues+". Default=none")
+ .build())
+ .addOption(
+ Option.builder().hasArg(true).longOpt(LIST_LICENSES)
+ .desc("List the defined licenses Valid options are:
"+licFilterValues+". Default=none")
Review Comment:
List the defined licenses (default is none). Valid options are: .....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]