< prev index next >

src/jdk.jcmd/share/classes/sun/tools/jcmd/JCmd.java

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

@@ -60,11 +60,11 @@
             System.exit(1);
         }
 
         if (arg.isShowUsage()) {
             Arguments.usage();
-            System.exit(1);
+            System.exit(0);
         }
 
         ProcessArgumentMatcher ap = null;
         try {
             ap = new ProcessArgumentMatcher(arg.getProcessString());
< prev index next >