Skip to content

Commit e66408d

Browse files
committed
Closes JabRef#13269 :
export footer only for commands that support --output
1 parent 1ba35d2 commit e66408d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jabkit/src/main/java/org/jabref/JabKit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static void applyUsageFooters(CommandLine commandLine,
106106
boolean hasInputOption = subCommand.getCommandSpec().options().stream()
107107
.anyMatch(opt -> Arrays.asList(opt.names()).contains("--input-format"));
108108
boolean hasOutputOption = subCommand.getCommandSpec().options().stream()
109-
.anyMatch(opt -> Arrays.asList(opt.names()).contains("--output-format"));
109+
.anyMatch(opt -> Arrays.asList(opt.names()).contains("--output"));
110110

111111
String footerText = "";
112112
footerText += hasInputOption ? inputFooter : "";

0 commit comments

Comments
 (0)