Integrated: JDK-8323016: Improve reporting for bad options
Jonathan Gibbons
jjg at openjdk.org
Fri Jan 5 22:19:29 UTC 2024
On Fri, 5 Jan 2024 00:12:32 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
> Please review a small enhancement when reporting bad options on the command line.
>
> [JDK-8313693](https://bugs.openjdk.org/browse/JDK-8313693) introduced code to help determine a list of suggestions when given a misspelled word and a vocabulary of possibly intended words. It was added in the context of reporting bad/invalid tags in doc comments.
>
> This fix leverages that code by applying it to unrecognized command-line options, comparing them against the set of supported command-line options. Now, when an unknown command-line option is found, the code will report possible suggestions, and a reference to `--help` instead of just simply listing the full command-line help.
This pull request has now been integrated.
Changeset: be4614eb
Author: Jonathan Gibbons <jjg at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/be4614eb5e4efcea3f3ef4d18f94cfb36fd557f4
Stats: 118 lines in 3 files changed: 113 ins; 0 del; 5 mod
8323016: Improve reporting for bad options
Reviewed-by: prappo
-------------
PR: https://git.openjdk.org/jdk/pull/17274
More information about the javadoc-dev
mailing list