private static void appendHelpForTool(TypedCmdLineTool<?> tool, StringBuilder sb) { Class<?> type = tool.type; Set<String> formats = StreamFactoryRegistry.getFactories(type).keySet(); sb.append("<para>The supported formats and arguments are:</para>\n\n"); Map<String, List<Argument>> formatArguments = new LinkedHashMap<>(); for (String formatName : formats) { if (!StreamFactoryRegistry.DEFAULT_FORMAT.equals(formatName)) { ObjectStreamFactory<?> format = tool.getStreamFactory(formatName); formatArguments.put(formatName, ArgumentParser.createArguments(format.getParameters())); } } appendArgumentTable(formatArguments, sb); }
private static void appendHelpForTool(TypedCmdLineTool<?> tool, StringBuilder sb) { Class<?> type = tool.type; Set<String> formats = StreamFactoryRegistry.getFactories(type).keySet(); sb.append("<para>The supported formats and arguments are:</para>\n\n"); Map<String, List<Argument>> formatArguments = new LinkedHashMap<>(); for (String formatName : formats) { if (!StreamFactoryRegistry.DEFAULT_FORMAT.equals(formatName)) { ObjectStreamFactory<?> format = tool.getStreamFactory(formatName); formatArguments.put(formatName, ArgumentParser.createArguments(format.getParameters())); } } appendArgumentTable(formatArguments, sb); }
private static void appendHelpForTool(TypedCmdLineTool<?> tool, StringBuilder sb) { Class<?> type = tool.type; Set<String> formats = StreamFactoryRegistry.getFactories(type).keySet(); sb.append("<para>The supported formats and arguments are:</para>\n\n"); Map<String, List<Argument>> formatArguments = new LinkedHashMap<>(); for (String formatName : formats) { if (!StreamFactoryRegistry.DEFAULT_FORMAT.equals(formatName)) { ObjectStreamFactory<?> format = tool.getStreamFactory(formatName); formatArguments.put(formatName, ArgumentParser.createArguments(format.getParameters())); } } appendArgumentTable(formatArguments, sb); }