Skip to content

Commit a50d085

Browse files
committed
Javadoc
1 parent b7c460f commit a50d085

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/main/java/org/apache/commons/cli/HelpFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public int compare(final Option opt1, final Option opt2) {
9393
/** Default padding to the left of each line */
9494
public static final int DEFAULT_LEFT_PAD = 1;
9595

96-
/** number of space characters to be prefixed to each description line */
96+
/** Number of space characters to be prefixed to each description line */
9797
public static final int DEFAULT_DESC_PAD = 3;
9898

9999
/** The string to display at the beginning of the usage statement */

src/main/java/org/apache/commons/cli/Option.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static final class Builder {
5959
/** The name of the option */
6060
private String option;
6161

62-
/** description of the option */
62+
/** Description of the option */
6363
private String description;
6464

6565
/** The long representation of the option */
@@ -68,10 +68,10 @@ public static final class Builder {
6868
/** The name of the argument for this option */
6969
private String argName;
7070

71-
/** specifies whether this option is required to be present */
71+
/** Specifies whether this option is required to be present */
7272
private boolean required;
7373

74-
/** specifies whether the argument value of this Option is optional */
74+
/** Specifies whether the argument value of this Option is optional */
7575
private boolean optionalArg;
7676

7777
/** The number of argument values this option can have */

src/main/java/org/apache/commons/cli/OptionGroup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public class OptionGroup implements Serializable {
3030
/** The serial version UID. */
3131
private static final long serialVersionUID = 1L;
3232

33-
/** hold the options */
33+
/** Hold the options */
3434
private final Map<String, Option> optionMap = new LinkedHashMap<>();
3535

3636
/** The name of the selected option */
3737
private String selected;
3838

39-
/** specified whether this group is required */
39+
/** Specified whether this group is required */
4040
private boolean required;
4141

4242
/**

src/main/java/org/apache/commons/cli/Options.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ public class Options implements Serializable {
4040
/** The serial version UID. */
4141
private static final long serialVersionUID = 1L;
4242

43-
/** a map of the options with the character key */
43+
/** A map of the options with the character key */
4444
private final Map<String, Option> shortOpts = new LinkedHashMap<>();
4545

46-
/** a map of the options with the long key */
46+
/** A map of the options with the long key */
4747
private final Map<String, Option> longOpts = new LinkedHashMap<>();
4848

49-
/** a map of the required options */
49+
/** A map of the required options */
5050
// N.B. This can contain either a String (addOption) or an OptionGroup (addOptionGroup)
5151
// TODO this seems wrong
5252
private final List<Object> requiredOpts = new ArrayList<>();
5353

54-
/** a map of the option groups */
54+
/** A map of the option groups */
5555
private final Map<String, OptionGroup> optionGroups = new LinkedHashMap<>();
5656

5757
/**

src/main/java/org/apache/commons/cli/Parser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public abstract class Parser implements CommandLineParser {
3434
/** CommandLine instance */
3535
protected CommandLine cmd;
3636

37-
/** current Options */
37+
/** Current Options */
3838
private Options options;
3939

40-
/** list of required options strings */
40+
/** List of required options strings */
4141
private List requiredOptions;
4242

4343
/**

src/main/java/org/apache/commons/cli/PosixParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ Licensed to the Apache Software Foundation (ASF) under one or more
3030
*/
3131
@Deprecated
3232
public class PosixParser extends Parser {
33-
/** holder for flattened tokens */
33+
/** Holder for flattened tokens */
3434
private final List<String> tokens = new ArrayList<>();
3535

36-
/** specifies if bursting should continue */
36+
/** Specifies if bursting should continue */
3737
private boolean eatTheRest;
3838

39-
/** holder for the current option */
39+
/** Holder for the current option */
4040
private Option currentOption;
4141

4242
/** The command line Options */

0 commit comments

Comments
 (0)