RFR: JDK-8323016: Improve reporting for bad options [v2]
Jonathan Gibbons
jjg at openjdk.org
Fri Jan 5 16:13:54 UTC 2024
> 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.
Jonathan Gibbons has updated the pull request incrementally with one additional commit since the last revision:
slight simplication for handling suggestions
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17274/files
- new: https://git.openjdk.org/jdk/pull/17274/files/421da083..109a54dd
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17274&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17274&range=00-01
Stats: 5 lines in 1 file changed: 1 ins; 1 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/17274.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17274/head:pull/17274
PR: https://git.openjdk.org/jdk/pull/17274
More information about the javadoc-dev
mailing list