< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/TTY.java

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

@@ -1005,11 +1005,12 @@
                 if (i == (argv.length - 1)) {
                     usageError("No connect specification.");
                     return;
                 }
                 connectSpec = argv[++i];
-            } else if (token.equals("-help")) {
+            // -help: legacy. Undocumented.
+            } else if (token.equals("-?") || token.equals("-h") || token.equals("--help") || token.equals("-help")) {
                 usage();
             } else if (token.equals("-version")) {
                 Commands evaluator = new Commands();
                 evaluator.commandVersion(progname,
                                          Bootstrap.virtualMachineManager());
< prev index next >