< prev index next >

src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java

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

*** 198,208 **** } boolean isHidden() { return true; } }, // Other options ! new Option(true, true, OptionType.OTHER, "--help", "-h") { void process(Main jartool, String opt, String arg) throws BadArgs { if (jartool.info == null) { if (arg == null) { jartool.info = GNUStyleOptions::printHelp; // Main.Info.HELP; return; --- 198,208 ---- } boolean isHidden() { return true; } }, // Other options ! new Option(true, true, OptionType.OTHER, "--help", "-h", "-?") { void process(Main jartool, String opt, String arg) throws BadArgs { if (jartool.info == null) { if (arg == null) { jartool.info = GNUStyleOptions::printHelp; // Main.Info.HELP; return;
< prev index next >