Interface MutuallyExclusiveGroup

All Known Implementing Classes:
ArgumentGroupImpl

public interface MutuallyExclusiveGroup
  • Method Details

    • description

      MutuallyExclusiveGroup description(String description)
      Sets description to customize help message of this group.
      Parameters:
      description - The description of this group.
      Returns:
      this
    • addArgument

      Argument addArgument(String... nameOrFlags)

      Creates new Argument and adds it to the underlining parser and returns it.

      See ArgumentParser.addArgument(String...) for details.

      Parameters:
      nameOrFlags - A name or a list of option strings of new Argument.
      Returns:
      Argument object.
    • required

      MutuallyExclusiveGroup required(boolean required)

      If true is given, one of the arguments in this group must be specified otherwise error will be issued.

      The default value is false.

      Parameters:
      required - true or false
      Returns:
      this