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 @@ -386,27 +386,34 @@ public Option[] getOptions()
386386 */
387387 public static final class Builder
388388 {
389+ /**
390+ * CommandLine that is being build by this Builder.
391+ */
389392 private final CommandLine commandLine = new CommandLine ();
390393
391394 /**
392395 * Add an option to the command line. The values of the option are stored.
393396 *
394397 * @param opt the processed option
398+ *
399+ * @return this Builder instance for method chaining.
395400 */
396- public Builder addOption ( Option opt )
401+ public Builder addOption (Option opt )
397402 {
398- commandLine .addOption ( opt );
403+ commandLine .addOption (opt );
399404 return this ;
400405 }
401406
402407 /**
403408 * Add left-over unrecognized option/argument.
404409 *
405410 * @param arg the unrecognized option/argument.
411+ *
412+ * @return this Builder instance for method chaining.
406413 */
407- public Builder addArg ( String arg )
414+ public Builder addArg (String arg )
408415 {
409- commandLine .addArg ( arg );
416+ commandLine .addArg (arg );
410417 return this ;
411418 }
412419
You can’t perform that action at this time.
0 commit comments