File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments