On Thu, 20 Jun 2024 16:13:04 GMT, Alan Bateman <al...@openjdk.org> wrote:
> Another thing is that using joptsimple gives up a bit of control, e.g. the > help output shows the parameter for --class-path as `<String>` where the java > launcher and other tools will show "path" or "class path". Same thing with > `--release` where it shows `<String>` where jar, javac, and other tools will > say "release". Not important for now, just comments from trying out the tool. It seems that it is possible in joptsimple to attach a description to the argument as well, and get something like: --module-path <String: module path> The class path as used at runtime It looks like we could also customize the argument type and get something like: --module-path <ModulePath> (we'd just need to add a `ModulePath` class with a `valueOf(String)` method) ------------- PR Comment: https://git.openjdk.org/jdk/pull/19774#issuecomment-2181315973