From 7b29ad433de4c2e2e681eaca66f9d88c3011f07e Mon Sep 17 00:00:00 2001 From: Ryan Schmitt Date: Tue, 21 Oct 2025 13:24:31 -0700 Subject: [PATCH] Fix `list-formats` help --- .../log4j/transform/cli/ConfigurationFileCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log4j-transform-cli/src/main/java/org/apache/logging/log4j/transform/cli/ConfigurationFileCommands.java b/log4j-transform-cli/src/main/java/org/apache/logging/log4j/transform/cli/ConfigurationFileCommands.java index 2b04e17e..606c6603 100644 --- a/log4j-transform-cli/src/main/java/org/apache/logging/log4j/transform/cli/ConfigurationFileCommands.java +++ b/log4j-transform-cli/src/main/java/org/apache/logging/log4j/transform/cli/ConfigurationFileCommands.java @@ -134,7 +134,7 @@ static class Convert implements Callable { public void setInputFormat(String inputFormat) { if (!converter.getSupportedInputFormats().contains(inputFormat)) { throw new IllegalArgumentException("Unsupported input format: `" + inputFormat - + "`.\nRun `listFormats` for a list of supported formats."); + + "`.\nRun `list-formats` for a list of supported formats."); } this.inputFormat = inputFormat; } @@ -146,7 +146,7 @@ public void setInputFormat(String inputFormat) { public void setOutputFormat(String outputFormat) { if (!converter.getSupportedOutputFormats().contains(outputFormat)) { throw new IllegalArgumentException("Unsupported output format: `" + outputFormat - + "`.\nRun `listFormats` for a list of supported formats."); + + "`.\nRun `list-formats` for a list of supported formats."); } this.outputFormat = outputFormat; }