This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-cli.git
commit 035555e2c800be23e7cd671fc2561d51fb8c6a60 Author: Gary Gregory <[email protected]> AuthorDate: Sat Nov 8 11:37:21 2025 -0500 Javadoc --- .../java/org/apache/commons/cli/DefaultParser.java | 32 ++++++++-------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/src/main/java/org/apache/commons/cli/DefaultParser.java b/src/main/java/org/apache/commons/cli/DefaultParser.java index 0eb03a19..832ad565 100644 --- a/src/main/java/org/apache/commons/cli/DefaultParser.java +++ b/src/main/java/org/apache/commons/cli/DefaultParser.java @@ -100,16 +100,12 @@ public class DefaultParser implements CommandLineParser { * By "partial matching" we mean that given the following code: * </p> * - * <pre> - * - * { - * @code - * final Options options = new Options(); - * options.addOption(new Option("d", "debug", false, "Turn on debug.")); - * options.addOption(new Option("e", "extract", false, "Turn on extract.")); - * options.addOption(new Option("o", "option", true, "Turn on option with argument.")); - * } - * </pre> + * <pre>{@code + * final Options options = new Options(); + * options.addOption(new Option("d", "debug", false, "Turn on debug.")); + * options.addOption(new Option("e", "extract", false, "Turn on extract.")); + * options.addOption(new Option("o", "option", true, "Turn on option with argument.")); + * }</pre> * <p> * If "partial matching" is turned on, {@code -de} only matches the {@code "debug"} option. However, with "partial matching" disabled, {@code -de} would * enable both {@code debug} as well as {@code extract} @@ -256,13 +252,11 @@ public class DefaultParser implements CommandLineParser { * By "partial matching" we mean that given the following code: * </p> * - * <pre> - * { - * @code - * final Options options = new Options(); - * options.addOption(new Option("d", "debug", false, "Turn on debug.")); - * options.addOption(new Option("e", "extract", false, "Turn on extract.")); - * options.addOption(new Option("o", "option", true, "Turn on option with argument.")); + * <pre>{@code + * final Options options = new Options(); + * options.addOption(new Option("d", "debug", false, "Turn on debug.")); + * options.addOption(new Option("e", "extract", false, "Turn on extract.")); + * options.addOption(new Option("o", "option", true, "Turn on option with argument.")); * } * </pre> * @@ -281,9 +275,7 @@ public class DefaultParser implements CommandLineParser { * <p> * By "partial matching" we mean that given the following code: * </p> - * <pre> - * { - * @code + * <pre>{@code * final Options options = new Options(); * options.addOption(new Option("d", "debug", false, "Turn on debug.")); * options.addOption(new Option("e", "extract", false, "Turn on extract."));
