Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
Still fails due to a deprecation warning related to System::setSecurityManager. Sorry - I'm not familiar enough with Java to know what should be done about it.
  • Loading branch information
mauvo authored and remkop committed May 20, 2023
1 parent d418a7a commit c9cd135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/picocli/CommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -18487,7 +18487,7 @@ public static class TypeConversionException extends PicocliException {
/** Exception indicating something went wrong while parsing command line options. */
public static class ParameterException extends PicocliException {
private static final long serialVersionUID = 1477112829129763139L;
private final CommandLine commandLine;
protected final CommandLine commandLine;
private ArgSpec argSpec = null;
private String value = null;

Expand Down Expand Up @@ -18659,7 +18659,7 @@ public boolean printSuggestions(PrintWriter writer) {
if (!suggestions.isEmpty()) {
writer.println(isUnknownOption()
? "Possible solutions: " + str(suggestions)
: "Did you mean: " + str(suggestions).replace(", ", " or ") + "?");
: "Did you mean: " + this.commandLine.commandSpec.name + " " + str(suggestions).replace(", ", " or ") + "?");
writer.flush();
}
return !suggestions.isEmpty();
Expand Down

0 comments on commit c9cd135

Please sign in to comment.