changeset 16739:8060bc52c10e

8165035: jar --help-extra should provide information on the -n/--normalize option Reviewed-by: chegar, alanb, mchung, lancea, sherman
author psandoz
date Wed, 15 Feb 2017 09:10:51 -0800
parents 87f2a6fb4b9a
children b035f72cddfc
files src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java	Wed Feb 15 15:57:18 2017 +0100
+++ b/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java	Wed Feb 15 09:10:51 2017 -0800
@@ -118,7 +118,7 @@
                 void process(Main jartool, String opt, String arg) {
                     jartool.nflag = true;
                 }
-                boolean isHidden() { return true; }
+                boolean isExtra() { return true; }
             },
             new Option(true, OptionType.CREATE_UPDATE, "--main-class", "-e") {
                 void process(Main jartool, String opt, String arg) {
--- a/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties	Wed Feb 15 15:57:18 2017 +0100
+++ b/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties	Wed Feb 15 09:10:51 2017 -0800
@@ -238,6 +238,11 @@
 \                             of the jar (i.e. META-INF/versions/VERSION/)
 main.help.opt.any.verbose=\
 \  -v, --verbose              Generate verbose output on standard output
+main.help.opt.create=\
+\ Operation modifiers valid only in create mode:\n
+main.help.opt.create.normalize=\
+\  -n, --normalize            Normalize information in the new jar archive\n\
+\                             after creation
 main.help.opt.create.update=\
 \ Operation modifiers valid only in create and update mode:\n
 main.help.opt.create.update.main-class=\