diff --git a/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java b/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java index e9f8fdc9ac..63d0b4f07f 100644 --- a/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java +++ b/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java @@ -294,6 +294,29 @@ void appendHelp(PrintStream out) { out.print(" "); //$NON-NLS-1$ out.println(helpString); } + + @SuppressWarnings("nls") + void appendHelpDocumentation(PrintStream out) { + out.print("
"); + out.print(identifiers[0]); + for (int idx = 1; idx < identifiers.length; ++idx) { + out.print(" | "); //$NON-NLS-1$ + out.print(identifiers[idx]); + } + if (optionSyntaxString != null) { + out.print(' '); + out.print(escape(optionSyntaxString)); + } + out.println("
"); + out.println("
"); + out.println(escape(helpString)); + out.println("
"); + } + + @SuppressWarnings("nls") + private String escape(String string) { + return string.replace("&", "&").replace("<", "<").replace(">", ">"); + } } private static final CommandLineOption OPTION_HELP = new CommandLineOption(new String[] { // @@ -1371,7 +1394,7 @@ public Object run(String[] args) { try { processArguments(args); if (printHelpInfo) - performHelpInfo(); + performHelpInfo(false); else { adjustDestination(); initializeServices(); @@ -1513,17 +1536,49 @@ IQueryResult getInstallableUnits(URI location, IQuery"); +// System.out.println("
"); +// System.out.println("
"); +// System.out.println("-application org.eclipse.equinox.p2.director"); +// System.out.println("
"); +// System.out.println("
"); +// System.out.println("The application ID."); +// System.out.println("
"); +// performHelpInfo(true); +// System.out.println("
"); +// } }