Skip to content

Commit 3790cec

Browse files
committed
Javadoc
1 parent f0d54de commit 3790cec

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ public Builder addOption(final Option opt) {
7272
return this;
7373
}
7474

75+
/**
76+
* Returns the new instance.
77+
*
78+
* @return the new instance.
79+
*/
7580
public CommandLine build() {
7681
return commandLine;
7782
}

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,20 @@ protected void checkRequiredOptions() throws MissingOptionException {
6363
*/
6464
protected abstract String[] flatten(Options opts, String[] arguments, boolean stopAtNonOption) throws ParseException;
6565

66+
/**
67+
* Gets the options.
68+
*
69+
* @return the options.
70+
*/
6671
protected Options getOptions() {
6772
return options;
6873
}
6974

75+
/**
76+
* Gets the required options.
77+
*
78+
* @return the required options.
79+
*/
7080
protected List getRequiredOptions() {
7181
return requiredOptions;
7282
}
@@ -326,6 +336,11 @@ protected void processProperties(final Properties properties) throws ParseExcept
326336
}
327337
}
328338

339+
/**
340+
* Sets the options.
341+
*
342+
* @param options the options.
343+
*/
329344
protected void setOptions(final Options options) {
330345
this.options = options;
331346
this.requiredOptions = new ArrayList<>(options.getRequiredOptions());

0 commit comments

Comments
 (0)