This commit is contained in:
@@ -21,7 +21,7 @@ enum SerializationFormat {
|
||||
.filter(sf -> Objects.equals(sf.name, value))
|
||||
.findFirst()
|
||||
.orElseThrow(() -> {
|
||||
var availableValues = Stream.of(
|
||||
String availableValues = Stream.of(
|
||||
JSON,
|
||||
JBON
|
||||
).map(SerializationFormat::name).collect(Collectors.joining(", "));
|
||||
|
||||
@@ -11,7 +11,7 @@ import picocli.CommandLine;
|
||||
subcommands = {WsonCommand.class, WcfgCommand.class})
|
||||
public class WsonCli implements Runnable {
|
||||
public static void main(String[] args) {
|
||||
final var commandLine = new CommandLine(new WsonCli());
|
||||
final CommandLine commandLine = new CommandLine(new WsonCli());
|
||||
commandLine.setExecutionExceptionHandler((ex, cl, parseResult) -> {
|
||||
log.error(ex.getMessage(), ex);
|
||||
return CommandLine.ExitCode.SOFTWARE;
|
||||
|
||||
Reference in New Issue
Block a user