Skip to content

Commit b6c395e

Browse files
committed
improve the output format debugging
1 parent 9fe075d commit b6c395e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/src/main/java/com/github/jsonldjava/tools/Playground.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public RDFFormat convert(String arg0) {
9595
if(formats.containsKey(formatName)) {
9696
return formats.get(formatName);
9797
}
98-
throw new ValueConversionException("Format was not known: " + arg0 + " (Valid values are: " + formats + ")"
98+
throw new ValueConversionException("Format was not known: " + arg0 + " (Valid values are: " + formats.keySet() + ")"
9999
);
100100
}
101101

@@ -110,7 +110,7 @@ public Class<RDFFormat> valueType() {
110110
}
111111
})
112112
.describedAs(
113-
"The output file format to use. Defaults to nquads. Valid values are: " + formats);
113+
"The output file format to use. Defaults to nquads. Valid values are: " + formats.keySet());
114114

115115
final OptionSpec<String> processingOption = parser.accepts("process")
116116
.withRequiredArg()

0 commit comments

Comments
 (0)