< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java

Print this page
rev 48074 : 8189102: All tools should support -?, -h and --help
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini

*** 503,516 **** case "--full-version": out.println(System.getProperty("java.vm.version")); return false; case "--help": case "-h": out.println(Messages.get("main.usage")); out.println(); out.println(Messages.get("main.help")); ! return false; case "-l": case "--list": require(scanMode == ScanMode.ARGS); scanMode = ScanMode.LIST; break; --- 503,517 ---- case "--full-version": out.println(System.getProperty("java.vm.version")); return false; case "--help": case "-h": + case "-?": out.println(Messages.get("main.usage")); out.println(); out.println(Messages.get("main.help")); ! return true; case "-l": case "--list": require(scanMode == ScanMode.ARGS); scanMode = ScanMode.LIST; break;
< prev index next >