< 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,11 +61,12 @@
break;
}
optionCount++;
- if (arg.equals("-help") || arg.equals("-h")) {
+ // -help: legacy. Undocumented.
+ if (arg.equals("-?") || arg.equals("-h") || arg.equals("--help") || arg.equals("-help")) {
usage(0);
}
if (arg.equals("-flag")) {
doFlag = true;
@@ -253,9 +254,9 @@
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.err.println(" -? | -h | --help to print this help message");
System.exit(exit);
}
}
< prev index next >