Skip to content

Commit 52d0882

Browse files
authored
Fix list-formats help (#232)
1 parent 129a9e8 commit 52d0882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log4j-transform-cli/src/main/java/org/apache/logging/log4j/transform/cli/ConfigurationFileCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static class Convert implements Callable<Integer> {
134134
public void setInputFormat(String inputFormat) {
135135
if (!converter.getSupportedInputFormats().contains(inputFormat)) {
136136
throw new IllegalArgumentException("Unsupported input format: `" + inputFormat
137-
+ "`.\nRun `listFormats` for a list of supported formats.");
137+
+ "`.\nRun `list-formats` for a list of supported formats.");
138138
}
139139
this.inputFormat = inputFormat;
140140
}
@@ -146,7 +146,7 @@ public void setInputFormat(String inputFormat) {
146146
public void setOutputFormat(String outputFormat) {
147147
if (!converter.getSupportedOutputFormats().contains(outputFormat)) {
148148
throw new IllegalArgumentException("Unsupported output format: `" + outputFormat
149-
+ "`.\nRun `listFormats` for a list of supported formats.");
149+
+ "`.\nRun `list-formats` for a list of supported formats.");
150150
}
151151
this.outputFormat = outputFormat;
152152
}

0 commit comments

Comments
 (0)