Class CommandLine.Builder

java.lang.Object
tripleo.vendor.org_apache_commons_cli.CommandLine.Builder
Enclosing class:
CommandLine

public static final class CommandLine.Builder extends Object
A nested builder class to create CommandLine instance using descriptive methods.
Since:
1.4
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • addArg

      @NotNull public @NotNull CommandLine.Builder addArg(String arg)
      Add left-over unrecognized option/argument.
      Parameters:
      arg - the unrecognized option/argument.
      Returns:
      this Builder instance for method chaining.
    • addOption

      @NotNull public @NotNull CommandLine.Builder addOption(Option opt)
      Add an option to the command line. The values of the option are stored.
      Parameters:
      opt - the processed option.
      Returns:
      this Builder instance for method chaining.
    • build

      @NotNull public @NotNull CommandLine build()