< prev index next >

src/jdk.jcmd/share/classes/sun/tools/jinfo/JInfo.java

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

*** 61,71 **** break; } optionCount++; ! if (arg.equals("-help") || arg.equals("-h")) { usage(0); } if (arg.equals("-flag")) { doFlag = true; --- 61,72 ---- break; } optionCount++; ! // -help: legacy. Undocumented. ! if (arg.equals("-?") || arg.equals("-h") || arg.equals("--help") || arg.equals("-help")) { usage(0); } if (arg.equals("-flag")) { doFlag = true;
*** 253,261 **** System.err.println(" -flag [+|-]<name> to enable or disable the named VM flag"); System.err.println(" -flag <name>=<value> to set the named VM flag to the given value"); System.err.println(" -flags to print VM flags"); System.err.println(" -sysprops to print Java system properties"); System.err.println(" <no option> to print both VM flags and system properties"); ! System.err.println(" -h | -help to print this help message"); System.exit(exit); } } --- 254,262 ---- System.err.println(" -flag [+|-]<name> to enable or disable the named VM flag"); System.err.println(" -flag <name>=<value> to set the named VM flag to the given value"); System.err.println(" -flags to print VM flags"); System.err.println(" -sysprops to print Java system properties"); System.err.println(" <no option> to print both VM flags and system properties"); ! System.err.println(" -? | -h | --help to print this help message"); System.exit(exit); } }
< prev index next >