8309670: java -help output for --module-path / -p is incomplete

Reviewed-by: mchung, alanb
This commit is contained in:
Christian Stein 2023-06-23 11:09:37 +00:00
parent d1d2b55ce0
commit 4bf78162c5
2 changed files with 18 additions and 11 deletions

View file

@ -50,12 +50,14 @@ java.launcher.opt.footer = \
\ and ZIP archives to search for class files.\n\ \ and ZIP archives to search for class files.\n\
\ -p <module path>\n\ \ -p <module path>\n\
\ --module-path <module path>...\n\ \ --module-path <module path>...\n\
\ A {0} separated list of directories, each directory\n\ \ A {0} separated list of elements, each element is a file path\n\
\ is a directory of modules.\n\ \ to a module or a directory containing modules. Each module is either\n\
\ a modular JAR or an exploded-module directory.\n\
\ --upgrade-module-path <module path>...\n\ \ --upgrade-module-path <module path>...\n\
\ A {0} separated list of directories, each directory\n\ \ A {0} separated list of elements, each element is a file path\n\
\ is a directory of modules that replace upgradeable\n\ \ to a module or a directory containing modules to replace\n\
\ modules in the runtime image\n\ \ upgradeable modules in the runtime image. Each module is either\n\
\ a modular JAR or an exploded-module directory.\n\
\ --add-modules <module name>[,<module name>...]\n\ \ --add-modules <module name>[,<module name>...]\n\
\ root modules to resolve in addition to the initial module.\n\ \ root modules to resolve in addition to the initial module.\n\
\ <module name> can also be ALL-DEFAULT, ALL-SYSTEM,\n\ \ <module name> can also be ALL-DEFAULT, ALL-SYSTEM,\n\

View file

@ -530,20 +530,25 @@ The value \[dq]disabled\[dq] disables finalization, so that no
finalizers are invoked. finalizers are invoked.
.TP .TP
\f[V]--module-path\f[R] \f[I]modulepath\f[R]... or \f[V]-p\f[R] \f[I]modulepath\f[R] \f[V]--module-path\f[R] \f[I]modulepath\f[R]... or \f[V]-p\f[R] \f[I]modulepath\f[R]
Specifies a list of directories in which each directory is a directory Specifies where to find application modules with a list of path elements.
of modules. The elements of a module path can be a file path to a module or a directory
containing modules. Each module is either a modular JAR or an
exploded-module directory.
.RS .RS
.PP .PP
On Windows, semicolons (\f[V];\f[R]) separate directories in this list; On Windows, semicolons (\f[V];\f[R]) separate path elements in this list;
on other platforms it is a colon (\f[V]:\f[R]). on other platforms it is a colon (\f[V]:\f[R]).
.RE .RE
.TP .TP
\f[V]--upgrade-module-path\f[R] \f[I]modulepath\f[R]... \f[V]--upgrade-module-path\f[R] \f[I]modulepath\f[R]...
Specifies a list of directories in which each directory is a directory Specifies where to find module replacements of upgradeable modules in the
of modules that replace upgradeable modules in the runtime image. runtime image with a list of path elements.
The elements of a module path can be a file path to a module or a directory
containing modules. Each module is either a modular JAR or an
exploded-module directory.
.RS .RS
.PP .PP
On Windows, semicolons (\f[V];\f[R]) separate directories in this list; On Windows, semicolons (\f[V];\f[R]) separate path elements in this list;
on other platforms it is a colon (\f[V]:\f[R]). on other platforms it is a colon (\f[V]:\f[R]).
.RE .RE
.TP .TP