changeset 19493:eb5c6f46cde4

--describe-module can't use -d as short form
author alanb
date Mon, 10 Apr 2017 13:15:04 +0100
parents 17abfe0ab91a
children 305afff7c279
files src/java.base/share/native/libjli/java.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/libjli/java.c	Mon Apr 10 12:29:15 2017 +0100
+++ b/src/java.base/share/native/libjli/java.c	Mon Apr 10 13:15:04 2017 +0100
@@ -570,8 +570,7 @@
 IsLauncherOption(const char* name) {
     return IsClassPathOption(name) ||
            IsLauncherMainOption(name) ||
-           JLI_StrCmp(name, "--describe-module") == 0 ||
-           JLI_StrCmp(name, "-d") == 0;
+           JLI_StrCmp(name, "--describe-module") == 0;
 }
 
 /*
@@ -1288,8 +1287,7 @@
         } else if (JLI_StrCmp(arg, "--list-resolved-modules") == 0) {
             listResolvedModules = JNI_TRUE;
         } else if (JLI_StrCmp(arg, "--describe-module") == 0 ||
-                   JLI_StrCCmp(arg, "--describe-module=") == 0 ||
-                   JLI_StrCCmp(arg, "-d") == 0) {
+                   JLI_StrCCmp(arg, "--describe-module=") == 0) {
             REPORT_ERROR (has_arg_any_len, ARG_ERROR12, arg);
             describeModule = value;
             return JNI_TRUE;