Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Minor beautification
Browse files Browse the repository at this point in the history
  • Loading branch information
felsenhower committed Oct 7, 2016
1 parent ad35176 commit d6f0c30
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ public CallLevelWrapper(String[] args) throws IOException {
// hookers.
try {
System.err.println(messages.get("MissingRequiredOption", ((List<?>) (e.getMissingOptions())).stream()
.filter(Object.class::isInstance).map(Object.class::cast).flatMap(o -> {
.filter(Object.class::isInstance).map(Object.class::cast).map(o -> {
if (o instanceof String) {
return Collections.singletonList(options.getOption((String) o)).stream();
return Collections.singletonList(options.getOption((String) o));
} else {
return ((OptionGroup) o).getOptions().stream();
return ((OptionGroup) o).getOptions();
}
}).filter(Option.class::isInstance).map(Option.class::cast).map(o -> o.getLongOpt())
.collect(Collectors.joining(", "))));
}).flatMap(o -> o.stream()).filter(Option.class::isInstance).map(Option.class::cast)
.map(o -> o.getLongOpt()).collect(Collectors.joining(", "))));
this.printHelp();
} catch (Exception totallyMoronicException) {
throw new RuntimeException("I hate 3rd party libraries!", totallyMoronicException);
Expand Down

0 comments on commit d6f0c30

Please sign in to comment.