author | jlaskey |
Mon, 25 Apr 2016 09:57:55 -0300 | |
changeset 37613 | 2040f359c9b1 |
parent 37612 | 2c9bb54c90dc |
child 37614 | 99a3cdeb43a7 |
jdk/src/jdk.jlink/share/classes/jdk/tools/jimage/JImageTask.java | file | annotate | diff | comparison | revisions |
--- a/jdk/src/jdk.jlink/share/classes/jdk/tools/jimage/JImageTask.java Mon Apr 25 09:57:55 2016 -0300 +++ b/jdk/src/jdk.jlink/share/classes/jdk/tools/jimage/JImageTask.java Mon Apr 25 09:57:55 2016 -0300 @@ -152,6 +152,11 @@ setLog(new PrintWriter(System.out)); } + if (args.length == 0) { + log.println(taskHelper.getMessage("main.usage.summary", PROGNAME)); + return EXIT_ABNORMAL; + } + try { List<String> unhandled = optionsHelper.handleOptions(this, args); if(!unhandled.isEmpty()) {