You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/cli/DefaultParser.java
+12-20Lines changed: 12 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -100,16 +100,12 @@ public DefaultParser get() {
100
100
* By "partial matching" we mean that given the following code:
101
101
* </p>
102
102
*
103
-
* <pre>
104
-
*
105
-
* {
106
-
* @code
107
-
* final Options options = new Options();
108
-
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
109
-
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
110
-
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
111
-
* }
112
-
* </pre>
103
+
* <pre>{@code
104
+
* final Options options = new Options();
105
+
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
106
+
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
107
+
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
108
+
* }</pre>
113
109
* <p>
114
110
* If "partial matching" is turned on, {@code -de} only matches the {@code "debug"} option. However, with "partial matching" disabled, {@code -de} would
115
111
* enable both {@code debug} as well as {@code extract}
@@ -256,13 +252,11 @@ static int indexOfEqual(final String token) {
256
252
* By "partial matching" we mean that given the following code:
257
253
* </p>
258
254
*
259
-
* <pre>
260
-
* {
261
-
* @code
262
-
* final Options options = new Options();
263
-
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
264
-
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
265
-
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
255
+
* <pre>{@code
256
+
* final Options options = new Options();
257
+
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
258
+
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
259
+
* options.addOption(new Option("o", "option", true, "Turn on option with argument."));
266
260
* }
267
261
* </pre>
268
262
*
@@ -281,9 +275,7 @@ public DefaultParser() {
281
275
* <p>
282
276
* By "partial matching" we mean that given the following code:
283
277
* </p>
284
-
* <pre>
285
-
* {
286
-
* @code
278
+
* <pre>{@code
287
279
* final Options options = new Options();
288
280
* options.addOption(new Option("d", "debug", false, "Turn on debug."));
289
281
* options.addOption(new Option("e", "extract", false, "Turn on extract."));
0 commit comments