< prev index next >

src/java.base/share/classes/sun/security/tools/keytool/Main.java

Print this page
rev 47855 : 8189102: All tools should support -?, -h and --help

*** 523,535 **** */ Command c = Command.getCommand(flags); if (c != null) { command = c; ! } else if (collator.compare(flags, "-help") == 0 || collator.compare(flags, "-h") == 0 || ! collator.compare(flags, "-?") == 0) { help = true; } else if (collator.compare(flags, "-conf") == 0) { i++; } else if (collator.compare(flags, "-nowarn") == 0) { nowarn = true; --- 523,537 ---- */ Command c = Command.getCommand(flags); if (c != null) { command = c; ! } else if (collator.compare(flags, "--help") == 0 || collator.compare(flags, "-h") == 0 || ! collator.compare(flags, "-?") == 0 || ! // -help: legacy. Undocumented. ! collator.compare(flags, "-help") == 0) { help = true; } else if (collator.compare(flags, "-conf") == 0) { i++; } else if (collator.compare(flags, "-nowarn") == 0) { nowarn = true;
*** 4599,4608 **** --- 4601,4612 ---- if (c == KEYCLONE) break; System.err.printf(" %-20s%s\n", c, rb.getString(c.description)); } System.err.println(); System.err.println(rb.getString( + "Use.keytool.help.for.all.available.commands")); + System.err.println(rb.getString( "Use.keytool.command.name.help.for.usage.of.command.name")); } } private void tinyHelp() {
< prev index next >