8165035: jar --help-extra should provide information on the -n/--normalize option
Reviewed-by: chegar, alanb, mchung, lancea, sherman
--- a/jdk/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java Wed Feb 15 15:57:18 2017 +0100
+++ b/jdk/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/jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties Wed Feb 15 15:57:18 2017 +0100
+++ b/jdk/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=\